home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / doc / PROJECTS < prev    next >
Encoding:
Text File  |  1996-07-07  |  111.1 KB  |  2,833 lines  |  [TEXT/R*ch]

  1. PROJECT IDEAS
  2.  
  3. This list is a collection of ideas about what to change in Xconq.
  4. In general, these are new features, rather than bug fixes.
  5. Everything is grouped into one of several categories, although
  6. the grouping is not precise, and to find out if some idea has been
  7. already thought of, you should search this using appropriate keywords.
  8.  
  9. --General
  10.  
  11. G5. Fix -DSYSV nonsense in SelFile so builds don't break.
  12.  
  13. G17. Write a search_straight_line(x0, y0, x1, y1, fn) that scans
  14. exact line between places.  Could also do 3d version.
  15. Use to determine obstacles to fire.
  16.  
  17. G23. Add multi-player alerts;
  18. multi_alert(msg, sides, [minquorum, mintopass], timeout)
  19. multi_query
  20. update_multi_query_display
  21. interface calls ack_multi_query.
  22.  
  23. G27. Define performance as a sort of ratio to specmarks, so benchmark game is
  24. known to last 2 minutes on a 100-specmark machine, etc.  Use -R 1, only
  25. "real" games, various mixes of AI, little/no interaction.
  26. Games should include classic, standard, gettysburg, magnusvew, ww2-eur-42.
  27. Add as "testperf" script, "check-perf" action to test makefile.
  28.  
  29. G30. Define foo_text(buf, n, xxx) where n is available space for description,
  30. return actual length of text in buffer.
  31. To get strings, define foo_string(xxx), which returns a 0-terminated string.
  32.  
  33. G32. Implement a convex region finder that works by picking random points as seeds
  34. and grows out from those.  Sides have to be "locked" if entire side can't
  35. all grow - combo of locked and unlocked sides allows region to become
  36. parallelogram, triangle, etc.
  37. How should borders and connections affect generic region finding?
  38. Grow from random points until about 3/4 of cells in regions, then scan
  39. down to finish off.  (Could leave single points as "their own regions",
  40. not alloc any region structs.)
  41.  
  42. G33. General path objects consist of multiple segments, each with start/end
  43. point and a validity test (that can be done at any time).  Also include
  44. a bit with segment saying "shortest" or just "nonincreasing distance".
  45. Should be possible for a path to say "impossible" for some segment??
  46. (consider path that consists of land travel segments plus a sea hop
  47. that needs a ferry of some sort - path is still valid and useful.)
  48.  
  49. G34. Regions should
  50. point to super-regions, not necessarily contained.  Include bits for
  51. caching connectedness, terrain percentages, etc.  Add region layer to
  52. regular map (each hex can only point to one region, multi-stuff must be
  53. between regions).  Need commands to define and display regions.
  54. Regions never overlap, must subdivide and make subregions be included
  55. in several super-regions.  True for all regions, don't do multiple
  56. "region layers" (unless significantly more efficient?  check stats).
  57. Add region layer for AIs that need to explore, add to layer
  58. as AI sees stuff.
  59.  
  60. G35. Theory of networked Xconq is that all copies synchronize on actions
  61. and random seeds, then do run_game and get identical results.  Each
  62. program will broadcast its planned actions, then wait until each other
  63. program indicates that it has sent all that it plans to.  When a program
  64. has received "done" from all others, then it can safely execute.
  65. Allow various combinations of multiple- and single-server games.
  66. For any routine in the interface that tweaks in the kernel, have to
  67. siphon it off to the network also.  Do via compiling interface with
  68. augmented calls, so kernel code need not be modified to know about
  69. networking.  On receiving side, input mux includes a decoder that
  70. invokes kernel routines (note that decoder has to know about calls
  71. that not all interfaces actually support, since less-powerful
  72. interface may get kernel-changing messages from more powerful interface).
  73. Build a "skelclient" from skelconq.c and client.c.  client.c includes
  74. a "wait_for_server" that calls run_game or just accepts outcomes and
  75. state changes from the server.
  76. Add tests involving two communicating skelconqs with preset port
  77. numbers, use to test networking behavior.  Use a skelconq and Xconq
  78. on Macs to test PPC (or GUSI?)
  79. Add a protocol version number etc so that mismatched versions can't
  80. connect.
  81.  
  82. G37. Define a "text buffer" object that is variable-size, resizes as needed,
  83. do all printfs into it.
  84.  
  85. G38. To guarantee integrity, program could display checksum or signature to players
  86. upon startup, so they can agree as to identity of program.
  87.  
  88. G39. To do play-by-mail games, need to be able to save an optionally encrypted game
  89. and pass along to next player -
  90. player info includes some sort of bit indicating
  91. where to send to. (player-address slot)
  92. Encrypted game should retain game-module form as plaintext,
  93. include a "password" slot, then all numbers appearing at "top level" will be
  94. decrypted, random forms still read normally.
  95. Also must be able to store all notices so other players can see.
  96.  
  97. G46. Finish writing game compiler, test, collect speed comparisons.
  98.  
  99. G47. Historical events should always be unique; check for duplications and
  100. complain or avoid creating when restoring a game.
  101.  
  102. G48. Restrict Lisp syntax knowledge to small part of code, allow translation
  103. to other syntaxes (tcl?).
  104.  
  105. G49. Keep part of history log on disk rather than in memory, read in to temp
  106. (preallocated) space when saving game.
  107.  
  108. G50. Add machinery to control size and detail of log, translate old stuff or
  109. some event types into summaries rather than full records.
  110.  
  111. G55. Decide where scorefiles should live, implement.
  112. One choice would be to make a scores directory, have a generic scorefile
  113. and several specialized game score files there also.
  114.  
  115. G56. Add a macro apply_to_all_stack(x, y, fn, go_down_if_true_fn).
  116.  
  117. G57. Add mechanism to record and replay a full transcript of all or part of
  118. a game.
  119.  
  120. G58. Decide what "taking a unit" is supposed to mean and implement if
  121. necessary.  Could be considered a combat-less capture, constrain when
  122. a unit can be captured vs fought.
  123.  
  124. G59.
  125. Glast.
  126.  
  127. --Kernel
  128.  
  129. K1. Allow game to define the fate of units when a side resigns.  Default
  130. should be for nothing to happen to any unit.  Possibilities include
  131. disappearance, surrender to first unit showing up, whole side being
  132. controlled, etc.
  133. Also include policy or commands to edit the leftover images from
  134. a losing side.
  135.  
  136. K2. Set up consistent rules for action priority.
  137. Unit action priority should be able to derive from individual extension
  138. property, a per-side vector of type priorities, a per-type property,
  139. and a per-side property.  Routine is just unit_priority(unit).
  140. Goal is to be able to have, say, allied aircraft and German ground
  141. units move together, then German aircraft and allied ground, then
  142. trains and trucks of both sides.
  143. Requirements:
  144. 1. Units of same priority should be able to be moved in a convenient
  145. order (to minimize scrolling, according to player's prefs, etc).
  146. 2. All units of a given priority must have finished movement before
  147. the next will move.  Includes delayed units.
  148.  
  149. K3. In evals, give meaning to "this" so expressions like (count <u> (this side))
  150. work.
  151.  
  152. K4. Could restrict some tables to 15 bit integers, use top bit to repn varying
  153. value, up to 16d15+127 by doing a 4/4/7 split of bits. (why?)
  154.  
  155. K5. Support full decimals for parms, flush the "10000" numbers and add scale
  156. factor to all numeric parms.  Scaling fixed by code, use scaling when
  157. computing effects.
  158. Ambiguity if context of decimal doesn't include scale factor (as in "define"),
  159. but could support decimals as a distinct type in GDL (as ratios instead of
  160. floats?).  c_number should convert to integer, or check validity of uses.
  161.  
  162. K6. Error messages should include context as well as line numbers (save previous
  163. several lines, and dump next several if still reading after error).
  164. Show first 72 chars of 3 previous lines and 3 following lines.
  165.  
  166. K7. Fix see-always to not show city occupants unless explicitly set up.
  167. (Only true of X11 interface?)
  168.  
  169. K8. If the people in a cell change to a trusted side, or if a trusted unit
  170. enters enemy cell, allies should get view updates.
  171.  
  172. K9. Implement delayed views, where a unit that is out of contact with the side
  173. keeps own view data and only merges when in contact with side again.
  174.  
  175. K10. [vision-terrain-effect to alter range depending on terrain?]
  176.  
  177. K11. [check validity of random event list after loading]
  178.  
  179. K13. For small-part-of-world areas, define daylight-zone and twilight-zone(?),
  180. which default to 1/2 and 1/12 respectively.
  181.  
  182. K14. Add area illumination ability so that burning wrecks and such can illuminate
  183. immediate area at night.  Do by adding bit vector for lighting or coverage-like array.
  184.  
  185. K15. Add a "last-alliance-wins" scorekeeper, use with some games.
  186.  
  187. K16. Decide when sides should be able to look at other units' hp.
  188.  
  189. K17. Climate-related global vars should become world or area properties.
  190. (like what?)
  191.  
  192. K19. Add a controlled-by layer to world that can be distinct from people side.
  193. Control can be imposed by presence of particular units within a given
  194. range, maintained by others to a given range, with chance of reversion
  195. to people side if different from controlling side.
  196.  
  197. K21. Define unit feelings toward each side as pair of bytes, for/against and
  198. willingness to act on feeling.
  199.  
  200. K22. Clarify vision rules.  The true state of the world is a set of layers.
  201. For each cell in each layer, there is an apparent value, a date for
  202. that value, possibly prev values also.  Only need bit if value always
  203. accurately known once discovered.  Elevations and features unlikely
  204. to change.
  205. directly_visible(side, unit)
  206. implies that unit is accurately seen.
  207. chance_to_see{,_on_movement,_on_action,_each_turn}(side, unit)
  208. if always 100%, then is equiv to directly_visible.
  209. Need parms see-xxx-always for each layer.
  210.  
  211. K23. Define a unit->tracking slot that is a sidemask of sides that are
  212. seeing the unit move around.  (Unit property "trk".)
  213. #define side_tracks_unit(side,unit) (unit->tracking&side_bit(side)).
  214. Define u_track_chance, defaults to 0.
  215. Define u_lose_track_chance, evaluate once/move, once/turn.
  216. If unit being tracked, then updates about unit state go to all
  217. tracking sides.
  218. Track bit would always be set for own units.
  219. (Is this the same as "unit->spotted"?)
  220.  
  221. K24. Implement storms as very-high-density cloud (>100%?).  Storms cause
  222. accidents and attrition and loss of acp and reduction of speed.
  223.  
  224. K25. Impl constant elevations and temps that don't need a whole layer.
  225. Detect by seeing min == max of terrain types present (and no chance
  226. of terrain changes - test this in general).
  227.  
  228. K26. Allow some moves to use random mp, be able to specify +/- amounts.
  229. This is mp (and acp?) consumption only, does not affect validity of action.
  230. ut_mp_extra?
  231.  
  232. K27. Define a notion of hp for bord/conn types, allows for interdiction
  233. and repair.
  234.  
  235. K28. Define a hallucination chance for some utypes:
  236. (sp-)looks-like u1 u2 -> n% is chance that u1 appears to be a u2
  237. and is recorded as such in a view.
  238. Note that code should ensure that only info about image is displayed
  239. rather than hallucination.
  240.  
  241. K29. Use a slot (which?) to indicate variation radius of actual reinforcement
  242. position around  given xy.  Default of zero requires to be on actual xy.
  243.  
  244. K30. Implement ZOC as a layer if any ZOC ranges > 1.
  245.  
  246. K32. Add a "facing" bitmask that indicates the directions that a unit is
  247. "facing", or can operate in, add effects of facing vs non-facing.
  248. Come up with a display for this.
  249.  
  250. K33. Events can have causes that they should be tied to, can use to
  251. enhance displays etc.
  252.  
  253. K34. Add a (sym <sym>) property to units that can be used to write a symbolic
  254. ref to unit when saving.  Stash in unit extras.
  255.  
  256. K35. Maintain an in-supply bit for units.
  257.  
  258. K36. Add chance that incomplete units will lose cp (eliminating if cp < 1),
  259. call it incomplete-accident-chance.
  260.  
  261. K37. To decide about control, see if any units cannot always be controlled
  262. directly, then for those compute the max radius that controlling units
  263. can be in.  If > 1, should define a layer, otherwise check directly
  264. when need to know.
  265.  
  266. K38. Add a commander property to units, control of units can recurse through
  267. commanders, so unit not under direct control can be under control if
  268. commander is in control range.
  269.  
  270. K39. Some unit types should be unwilling to break a treaty.
  271. (In some games,)
  272. Should humans have to declare war explicitly?
  273. DoW may not be possible or meaningful in some games...
  274. DoW is agreement by single player doing the declaration, terms are to
  275. treat side as enemy (doctrine), and to hit other side (how often?),
  276. could demand a surrender of some sort.
  277. DoW must be public.
  278. Up to other sides how to respond.
  279. Peace treaty includes terms to nullify DoW.
  280. In general, terms should be able to include refs to other agreements.
  281. DoW can always be rescinded by player alone, make it have morale
  282. consequences?
  283.  
  284. K41. @deffn Table @code{people-sabotage-rate??} u m -> .01hp
  285. This table is the attrition rate of a unit in the open in
  286. a cell with people on a hostile [define] side.
  287. @end deffn
  288.  
  289. K42.
  290. DEF_UPROP_I("lockon-chance", u_lockon_chance,
  291.     "chance that unit remains seen when no longer covered",
  292.     lockonchance, 0, 0, 100)
  293. @deffn UnitTypeProperty @code{lockon-chance} n%
  294. This property is the chance that once seen, a unit will continue to be seen
  295. while it is being covered.
  296. Defaults to @code{0}.
  297. @end deffn
  298.  
  299. K43.
  300. DEF_UPROP_I("storage", u_storage,
  301.     "space for materials shared by all types",
  302.     storage, 0, 0, 9999)
  303. DEF_UM_TABLE("material-size-in-unit", um_size,
  304.     "how much space one unit of a material requires in a unit",
  305.     umsize, constumsize, 0, 1, 9999)
  306. @deffn UnitTypeProperty @code{storage} n
  307. This property is a unit's generic space for materials of any type.
  308. Defaults to @code{0}.
  309. @end deffn
  310. @deffn Table @code{material-size-in-unit} u m -> n
  311. This table is the amount by which the given material counts against
  312. the unit's storage space.
  313. Defaults to @code{1}.
  314. @end deffn
  315.  
  316. K44.
  317. DEF_UT_TABLE("capacity-negation", ut_capacity_neg,
  318.     "true if the unit negates capacity of connections of the terrain type",
  319.     utcapacityneg, constutcapacityneg, 0, 0, 1)
  320. [, but some unit types negate the capacity of connections.]
  321. @deffn Table @code{capacity-negation} u t -> t/f
  322. This table is @code{true} if when @var{u} is in the open in a cell
  323. that includes connections of type @var{t},
  324. those connections have no capacity for units.
  325. Defaults to @code{false}.
  326. @end deffn
  327.  
  328. K45. Implement (or stub) basic goal tests.
  329.  
  330. K46. Implement doctrine locking.
  331.  
  332. K47. Terrain types should have a precedence determining which conn/border types
  333. override each other's effects (right now any conn overrides any border).
  334. Should be a property of ttypes.
  335.  
  336. K48. Side relations could be expressed as a bit vector of what will happen
  337. in various situations.  "wake up if approached", "allow entry", "exchange
  338. view info", etc.  Particular relationships such as trust and control
  339. become particular bit vectors then. (or could do as defcon levels?)
  340.  
  341. K49. Need a way to have an OB with lots of units, followed by refs to
  342. particular units and modified properties, and read both without
  343. creating any useless units.
  344.  
  345. K50.
  346. @deffn SideProperty @code{respect-neutrality} t/f
  347. @end deffn
  348.  
  349. K51.
  350. DEF_KWD("real-timeout", K_REAL_TIMEOUT, 0)
  351.  
  352. K52.
  353. @deffn SideProperty @code{real-timeout} seconds
  354. This property is the number of (real) seconds to wait before declaring the
  355. side to be finished with this turn.
  356. Defaults to @code{-1}, which waits forever.
  357. @end deffn
  358.  
  359. K53.
  360. @deffn SideProperty @code{task-limit}
  361. This property is the maximum number of tasks a unit is allowed to stack up.
  362. @end deffn
  363.  
  364. K54.
  365. @deffn DoctrineProperty @code{avoid-bad-terrain} n%
  366. This property is the probability that the unit will not enter
  367. unhealthy terrain, even if it delays meeting goals.
  368. Unhealthy means higher attrition and accident probs, materials
  369. consumed faster than replaced, slower movement.
  370. Defaults to @code{0}.
  371. @end deffn
  372.  
  373. K55.
  374. @deffn DoctrineProperty @code{repair-at} n%
  375. This property indicates that when the unit's hp is at @var{n%} of max,
  376. make a plan to repair.
  377. Defaults to @code{50}.
  378. @end deffn
  379.  
  380. K56.
  381. @deffn DoctrineProperty @code{resupply-at} n%
  382. This property indicates that when the level of a
  383. operationally-consumed material is at @var{n%}
  384. of capacity, try to resupply.
  385. Defaults to @code{50}.
  386. @end deffn
  387.  
  388. K57.
  389. @deffn DoctrineProperty @code{rearm-at} n%
  390. This property indicates that when the level of a
  391. combat-consumed material is at @var{n%}
  392. of capacity, try to resupply.
  393. Defaults to @code{50}.
  394. @end deffn
  395.  
  396.  
  397. K58. Be able to expand country borders by building or occupying outside original
  398. country.
  399. ut_add_people_chance n%
  400. ut_add_people_adj_chance n%
  401.  
  402. K59. Decide if/how country growth and initial strength should interact.
  403.  
  404. K61. Add a command-line option to interpret forms supplied on the command line.
  405. Do these after all else read and interpreted and variants done.
  406. Allow both pre-load and post-load (default) forms.
  407.  
  408. K62. Each side should be able to get different instructions.
  409. Per-side instructions should not be accessible to other sides.
  410.  
  411. K63. Should use elevation diffs to decide about sloping terrain (a new subtype-x).
  412. Add to basic percentile algorithm.
  413.  
  414. K64. Look further ahead in road generation to pick overall most favorable
  415. routing. (count cells adjacent to proposed next cell).
  416.  
  417. K65. Player mix test should be allowable_player_mix(assignmentindex),
  418. allows "scapegoating" a particular player if failed - gives
  419. a starting place for interface to fix.
  420.  
  421. K66. Define parms for variability of initial materials using variation
  422. on fractal percentile synth method.
  423.  
  424. K67. Add flooding rules for when terrain changed around a liquid type.
  425. Non-liquid border could be a dike.
  426.  
  427. K68. Add density of occupants of indep units already placed.  Specify for
  428. both units that have to be occs and others that don't.
  429.  
  430. K69. Need a way to coordinate all name gen for a single side -
  431. "foo" -> Fooland, Fooard, Fooards, Fooish"  Could also decide colors and
  432. emblem randomly, but wouldn't need to coordinate.
  433. Specify just *one* side name generator, extensions added in a standard
  434. way by an nlang.c routine.
  435. Predefine nonterminals side-name, side-noun, etc in side-namer grammar.
  436.  
  437. K70. Add "earthlike" generator that borrows code, but is completely wired
  438. to do Earthlike stuff, including a semi-wired set of terrain types
  439. (use extensions to recognize by attributes rather than position,
  440. so that river deltas can be flat and swampy indep of how terrain type
  441. fits with others in a game design).
  442. Use tectonic code at some scales, erosion at others.
  443. Could base calcs on sphere, translate to world grid when done.
  444. Base on all real dimensions, so alt ranges wired.
  445. Parameters are area size/world.circumference for the scale
  446. (assume 100 km/cell if weird circumference),
  447. latitude of area, range of elevations (0 - 10000 meters),
  448. distance from coast (at center of area, allows specifying distance such that
  449. area can be 3/4 land, etc), average temp, average rainfall.
  450. For tectonics, use layers for plate num, move dir, and elevation.
  451. For small-scale, make random ridge/high point, erode down to lowest
  452. or to coast.
  453.  
  454. K71. Add recorded events that get played when their scheduled time
  455. arrives, so that a city could revolt or disappear at a preset time.
  456. Playing scheduled events should happen after acp/mp calc, but before
  457. players actually get to move.
  458.  
  459. K72. Add synth method for secret scorekeeper goals.
  460.  
  461. K73. Use password to match up players when restoring into a different set
  462. of displays.  If no password, then will just accept a different
  463. assignment, perhaps warn for cmdline setup, flag in dialog boxes.
  464.  
  465. K74. Any terrain-based variation, such as temperature, should check
  466. if need to represent varying values over area, don't need to
  467. alloc layer if not, *but* may need to quickly synth layer if
  468. terrain is added that *does* allow variations.
  469.  
  470. K75. Should be able to conceal the identity of side until first
  471. encountered (still display progress in turn, helpful to play).
  472. Also not be able to send messages to unknown sides, though
  473. broadcast should still work.
  474.  
  475. K77. When making units appear, do only units in open directly, then
  476. occupants recursively once transports have appeared.
  477. Similarly for disappearance, but in reverse order.
  478.  
  479. K78. Fix up material transfer action so that transfer is free or cheap
  480. in most games, but can be made expensive.
  481.  
  482. K79.
  483. DEF_UPROP_I("elevation-at-max-range", u_elev_at_max_range,
  484.     "elevation of fire when shooting at maximum range",
  485.     elevatmaxrange, 0, 0, 9999)
  486. Formula is something like
  487. maxelev = (range / rangemax) * elev_at_max_range
  488. y = maxelev - (maxelev * (x - range/2)^2) / (range/2)^2.
  489. @deffn UnitTypeProperty @code{elevation-at-max-range} dist
  490. [elaborate calc to interpolate while rising and falling, basically
  491. approximating a parabola]
  492. Defaults to @code{0}.
  493. @end deffn
  494.  
  495. K79. Add tables material-to-add-terrain, material-to-remove-terrain
  496. (examples are cement to make road, fill material to remove ditch or gully).
  497.  
  498. K80. Define action "influence" that is like proposed "charm" but more
  499. general.
  500.  
  501. K81. Allow the construction of bases even when it would be necessary
  502. to bring all units stacked in the cell inside the incomplete base,
  503. in order to make sufficient room.
  504. Entries should be automatic and free.
  505.  
  506. K82. Add a uu_acp_for_pursuit to give a bonus if the victim is retreating.
  507.  
  508. K83. Implement acp_for_retreat.  For each direction away from the attacker,
  509. see if (acp_for_retreat + acp) * speed > mp needed to enter cell.
  510. Do for each dir, pick workable.  But first try to retreat into transports
  511. if possible.
  512.  
  513. K86. Some occ types could protect by intensifying counterattack.
  514.  
  515. K87. Add a material cost um_material_per_<type> and prerequisite
  516. um_material_to_<xxx> for all actions.
  517.  
  518. K88. Generalized notion of fire interdiction would be useful, could subsume
  519. effects of jammers and suchlike, also if firing is used to represent
  520. aircraft raids, need a way to define interceptors that can reduce
  521. the effectiveness of the raid and the amount of aircraft material
  522. available.
  523.  
  524. K89. To do < 1 cell/turn speeds, available acp should translate to
  525. occasional ability to move.
  526.  
  527. K90. Define material-theft-per-contact(u1, u2, r) -> n in combat,
  528. material-loss-per-hit(u1, u2, r) -> n which is material completely lost.
  529. Some could be "resorbed" by terrain?
  530.  
  531. K91. Chance to surrender should be higher if damaged.
  532.  
  533. K92. A mobile unit should be considered surrounded or cornered if adjacent
  534. cells are either impassable or occupied by unfriendlies.  Also look for
  535. impassable borders and passable connections.
  536.  
  537. K93. Occupants of captured units might get to stay and not change side
  538. if friendliness-to-enter allows it (?).
  539.  
  540. K94. Detonation's effects should depend on altitude of detonating unit -
  541. compute the "actual" 3d distance.
  542.  
  543. K95. Define effects of altitude differences on all unit interactions.
  544.  
  545. K96. Damage to multi-part units could be done by detaching wrecked-type
  546. instead of damaging all parts equally.  Do only if wrecked-type
  547. has appropriate sizes.  Only applies if wrecked-type has equal num
  548. parts to original type.
  549.  
  550. K97. Could do multi-cell move actions as repeat of hex entry until
  551. anything happens that requires a decision - blockage, etc.
  552. example: acp = 1, mp/acp = 10, allows single move of up to 10 hexes.
  553.  
  554. K98. If a side wins a battle, then side's units involved should gain affinity
  555. for side, lose fear of other side.
  556. On losing side, units lose affinity for own side and increase fear of
  557. winning side.  Nonparticipants also affected, but less so.
  558. Affinity increases by positive acts, fear increases by negative acts.
  559. Betrayals should be detectable, have large effect.
  560. Need some implicit agreements about defense of units on a side,
  561. that players should not violate.
  562.  
  563. K99. Side action limit should be a distinct value, decremented only for "manual"
  564. activity by player (first action after waiting for input?).
  565.  
  566. K100. Add a "coordination" action that adds other units to a unit's attack,
  567. with multiplied effect.  Attack action has to look at each coordinating
  568. unit, add effect if able to do so, and take away acp for coordinating
  569. units also.
  570.  
  571. K101. For variable-commitment combat, attacker effectively sets m% commitment
  572. for self, desires n% from defender.  Defender then chooses between n1-n2%
  573. commitment, where limits set by unit types and m%.
  574. Possible reactions also limited by commitment - defender could disengage
  575. at <10% commitment, say, is otherwise stuck in the battle.
  576. Reactions are counterattack, surrender, withdraw, do nothing special,
  577. these are (mostly) indep of damage.
  578.  
  579. K102. Commitments default to zero.  If can be nonzero, create battle objects.
  580.  
  581. K103. If defender counterattacks, then might exchange attacker/defender
  582. in battle, so now defender can decide commit/withdraw.
  583.  
  584. K105. Add loss of material as consequence of combat.
  585. @deffn Table @code{theft-chance-per-attack??} u1 u2 -> n%
  586. @end deffn
  587. @deffn Table @code{stealable-material??} u m -> n
  588. @end deffn
  589. @deffn Table @code{loss-per-attack??} u1 u2 -> n%
  590. @end deffn
  591.  
  592. K106. Add variable commitment and then constrain it:
  593. @deffn Table @code{attack-commit-min??} u1 u2 -> n%
  594. @end deffn
  595. @deffn Table @code{defend-commit-min??} u1 u2 -> n%
  596. These tables are the minimum limits on the initial commitment to a battle.
  597. Defaults to @code{0}.
  598. @end deffn
  599. @deffn Table @code{attack-commit-max??} u1 u2 -> n%
  600. @end deffn
  601. @deffn Table @code{defend-commit-max??} u1 u2 -> n%
  602. These tables are the maximum limits on the initial commitment to a battle.
  603. Defaults to @code{100}.
  604. @end deffn
  605. @deffn Table @code{attack-commit-up-max??} u1 u2 -> n%
  606. @end deffn
  607. @deffn Table @code{defend-commit-up-max??} u1 u2 -> n%
  608. @end deffn
  609. @deffn Table @code{attack-commit-down-max??} u1 u2 -> n%
  610. @end deffn
  611. @deffn Table @code{defend-commit-down-max??} u1 u2 -> n%
  612. These tables are the maximum limits on the change to commitment to a battle.
  613. Defaults to @code{100}.
  614. @end deffn
  615.  
  616. K107. cxp affects both attack and defense abilities, should define
  617. uu_cxp_{attack,defend}_effect.
  618.  
  619. K108. Be able to control whether occupants can be attacked directly.
  620.  
  621. K109. [need general defns for who moves and when during combat rounds]
  622. [could potentiall acquire additional acp if move is discretionary,
  623. also get a level of flexibility about future commitment]
  624.  
  625. K110. [need combat's effect on tooling? uu_tp_hit_effect, can be positive
  626. or negative (being hit helps recruiit soldiers)
  627. just hit tp randomly as percentage of hp]
  628.  
  629. K111.
  630. @c @deffn Table @code{cxp-hit-plus-max} u1 u2 -> n%
  631. @c This table is the maximum hit modifier for attacker unit.
  632. @c Defaults to @code{0}.
  633. @c @end deffn
  634. @c 
  635. @c @deffn Table @code{cxp-hit-minus-max} u1 u2 -> n%
  636. @c This table is the maximum hit modifier for defender unit.
  637. @c Defaults to @code{0}.
  638. @c The actual hit probability equals the basic hit probability, plus
  639. @c @code{experience-hit-plus-max} times fractional experience (i.e.
  640. @c experience divided by maximum experience) of the attacking unit, minus 
  641. @c @code{experience-hit-minus-max} times fractional experience of the
  642. @c defending unit.
  643. @c @end deffn
  644.  
  645. K112.
  646. DEF_VAR_I("actions-are-buffered", g_actions_buffered, set_g_actions_buffered,
  647.     "",
  648.     gactionsbuffered, 0, 0, 1)
  649.  
  650. K113.
  651. @deffn GlobalVariable @code{actions-are-buffered} t/f
  652. This variable is @code{true} if all the units of the same priority
  653. must specify their actions first and then execute
  654. them all at once,
  655. rather than deciding and executing before the next unit gets to act.
  656. Defaults to @code{false}.
  657. @end deffn
  658.  
  659. K114.
  660. DEF_UU_TABLE("material-cxp-effect", uu_material_cxp_effect,
  661.     "effect of combat experience on material usage in combat",
  662.     uumaterialcxp, constuumaterialcxp, 0, 100, 9999)
  663. @deffn Table @code{material-cxp-effect} u1 u2 -> n
  664. @end deffn
  665.  
  666. K115.
  667. DEF_UU_TABLE("attack-elevation-effect", uu_attack_elev_effect,
  668.     "",
  669.     uuattackeleveff, constuuattackeleveff, 0, 100, 9999)
  670. @deffn Table @code{attack-elevation-effect} n
  671. Defaults to @code{100}.
  672. @end deffn
  673.  
  674. K116.
  675. DEF_UU_TABLE("friendly-hit-chance", uu_friend_hit,
  676.     "base chance for a type of unit to hit a unit on a friendly side",
  677.     uufriendhit, constuufriendhit, 0, 0, 100)
  678. @deffn Table @code{friendly-hit-chance} u1 u2 -> n%
  679. This table is the chance that a unit @var{u2} on the attacker's side will
  680. be hit accidentally during an @code{overrun} or @code{fire-into}
  681. action.
  682. Defaults to @code{0}.
  683. @end deffn
  684.  
  685. K117.
  686. DEF_UU_TABLE("ambush-chance", uu_ambush,
  687.     "chance that a unit will be able to attack by surprise",
  688.     uuambush, constuuambush, 0, 0, 100)
  689. @deffn Table @code{ambush-chance} u1 u2 -> n%
  690. If @var{u1} attempts to move into a cell containing @var{u2},
  691. then a) if can't co-occupy, this table is the chance that @var{u1}
  692. gets a chance to attack at improved odds(?), or if b) if can
  693. co-occupy, then @var{u1} will enter the cell, then be attacked
  694. as in a).  The ambusher's plan can flag whether the unit
  695. will take ambush opportunities or not.
  696. @end deffn
  697.  
  698. K118.
  699. DEF_UT_TABLE("mp-to-ascend", ut_mp_to_ascend,
  700.     "mp needed to increase elevation or altitude",
  701.     utmptoascend, constutmptoascend, -1, 0, 9999)
  702. DEF_UT_TABLE("mp-to-descend", ut_mp_to_descend,
  703.     "mp needed to reduce elevation or altitude",
  704.     utmptodescend, constutmptodescend, -1, 0, 9999)
  705. @deffn Table @code{mp-to-ascend} u t -> mp
  706. @end deffn
  707. @deffn Table @code{mp-to-descend} u t -> mp
  708. These tables are the mp cost to go from the min possible elevation
  709. to the max possible elevation in the world.
  710. This is interpolated and rounded down.
  711. @var{t} is the type of terrain being left.
  712. Defaults to @code{0}.
  713. @end deffn
  714.  
  715.  
  716. K119.
  717. @deffn Table @code{ablation} u1 u2 -> n%
  718. This table is the amount of the hit that gets passed through
  719. to the transport's occupants.
  720. Defaults to @code{100}.
  721. @end deffn
  722. @deffn Table @code{stack-ablation} u1 u2 -> n%
  723. @end deffn
  724.  
  725. K120. Add a way for elevation to screen out detonation effects.
  726.  
  727. K121. Interleave visual effects with detonation.
  728.  
  729. K122. Add screen and area flashes as types of movies.
  730.  
  731. K123. Define a "process" object:
  732. (process <name>
  733.   (agents <unit-type(s)>)
  734.   (automated-rate n1)
  735.   (manual-rate n2) ; + acp to do?
  736.   (inputs <material-types>)
  737.   (outputs ...)
  738.   (catalysts ...)
  739.   (terrain-effects ...)
  740.   )
  741. Process agent units are optional.
  742. May want to add "tooling" of units to do a process.
  743.  
  744. K124. Add a type of random event where a side or group of units can change
  745. to an active side all at once, reflects changing politics, requires
  746. maintenance of reserves, etc.
  747.  
  748. K125. Add a min-hp-to-recover that is like hp-to-repair, but applies to
  749. automatic hp recovery.
  750.  
  751. K126. Add ut_people_supply that is amount of supply gotten by unit if people in
  752. cell are on the same side.
  753.  
  754. K127. Express need for limited supply as "n turns of supply before starvation"?
  755. Can lead to tough decisions about starving rear areas for sake of major
  756. offensives, etc.
  757.  
  758. K128. in-length > 0 + ability to transfer from terrain should mean that unit
  759. can get supply from cells other than own cell.  Use to get water from
  760. adjacent land in "voyages".
  761.  
  762. K129. Should choose side to revolt to by counting
  763. number of units (of same type on each side?).
  764.  
  765. K130. Siege surrender chance should be distinct from normal surrender chance.
  766.  
  767. K131. Games should be able to define what size groups can be surrounded,
  768. by radius or number of units.  Default to 1 cell areas.
  769.  
  770. K132. [need to identify motives for material demand, if type not needed
  771. for actual survival - dyes needed for "art" for example -
  772. might vary between sides/unit types?]
  773. [would need to define generic elasticity of demands,
  774. also the profit-seekingness of a population (vs conservatism, etc)]
  775. [need some notion of credit too?]
  776. [units can effectively forage at some distance, distinguish foraging
  777. from actual production]
  778. [price should go up as material is transported further and further,
  779. and across varying difficulty of terrain...]
  780. [note that as sides, players can't force cell economy but can
  781. encourage it]
  782. [perhaps allow a side to fix a price artificially, let everything
  783. else readjust around it?]
  784. Sides can specify their trading relationship with other sides,
  785. by specifying the ratio of tariff to supply [etc].
  786. [trade relationship is indep of general trust/friendliness]
  787. [some type of agreements might be intrinsically enforceable, such as
  788. exchanges between units that cannot attack or capture each other]
  789. [exchange of material needs to relax fullness rules or be done as
  790. a sort of prim, else might not be able to trade when full]
  791.  
  792. K133. Do supply lines, display unit's supplier and maybe supply route.
  793. Is there an efficient way to handle this?
  794.  
  795. K134. To do large elev ranges, use bit 14 to indicate which range,
  796. define a global that gives ratio of ranges.  Also need a descriptor
  797. for text generation.
  798.  
  799. K135. Add possibility to see some/all of a side's units if one of them is captured.
  800.  
  801. K136. Weather needs pressure, humidity, calculates new values of these
  802. and also has effects on visibility at multiple levels of atmosphere.
  803. Need to identify effect of each terrain type (and elevation) on each
  804. of these, also specify the rate at which changes occur.
  805. Effects on supply.
  806. Effect on vision, sensing in general.
  807. Each utype has preferred weather, gradual falloff in effectiveness.
  808. Add a generic "violence" value that summarizes wind/storm strength,
  809. relate to unit behavior.
  810. Impl via weather phenomena - overcast/clouds, rain/snow, storms/wind,
  811. temperature, humidity (compute value of phenomena, then compute phenomena's
  812. effect on units).
  813. Attrition increased by storms, also chance of accidents (for each accident
  814. type).
  815. Could make some types of terrain temporarily impassable.
  816. Display should show fronts, major storms.
  817. Impl sequence should be fixed weather (weather state), random weather,
  818. seasonal weather, calculated weather.
  819.  
  820. K137. Compute a daily temperature cycle based on number of daylight hours etc.
  821.  
  822. K138. @deffn UnitTypeProperty @code{weather-vision-range} dist
  823. [should be a table so can't see a long ways off from within forest?]
  824. @end deffn
  825.  
  826. K139. The primary effect of clouds is to make things harder to see,
  827. can affect both units on ground (such as for fog) and in the air.
  828.  
  829. K140. @deffn UnitTypeProperty @code{vision-cloud-effect} xxx
  830. @end deffn
  831.  
  832. K141. Be able to play back a recorded sequence of weather during a game.
  833.  
  834. K142. Distinguish "ideal" material level from "max" level, let
  835. some percentage of material move towards comfortable areas.
  836.  
  837. K143. Scorekeeper can forbid the saving and restoring of a game, use in
  838. nonsecure situations.
  839.  
  840. K144. Add a scorekeeper that looks at side view to decide whether player has
  841. discovered something that is to be searched for.  Should be able to
  842. require finding a lost city, etc.
  843.  
  844. K145. Add option to scorekeeper to run on success/failure of an action
  845. matching given parameters, plus option to run on occurrence of a specified
  846. events, otherwise scorekeeper runs at either beginning or end of turn.
  847. Matching includes side and unit.
  848.  
  849. K146. Add formal notion of money as a type of material that is global to a side,
  850. has no physical repn.  Materials such as gold can have a monetary value.
  851. Sides can force exchange rates or let float.
  852.  
  853. K147. Add a "plague" random event/process that randomly spreads and moves around,
  854. use for fires, plagues, floods, etc.
  855. Could track state/progress by material layer or a "severity" layer.
  856. Perhaps use coating terrain for this?
  857.  
  858. K148. Add random cloud modification process, include random storm generation.
  859.  
  860. K149.
  861. DEF_TM_TABLE("supply-move-rate", tm_supply_move_rate,
  862.     "",
  863.     tmsupplymove, consttmsupplymove, 0, 0, 0)
  864. @deffn Table @code{supply-move-rate} t m -> n
  865. This table says how much of material @var{m}
  866. can be moved through terrain @var{t}
  867. (cell, border, or connection) in each material transfer action.
  868. The actual limit is the minimum of all cells and borders
  869. along the supply route.
  870. A value of @var{-1} allows any quantity to go through.
  871. @end deffn
  872.  
  873. K150.
  874. DEF_UM_TABLE("supply-interdiction", um_interdiction,
  875.     "",
  876.     uminterdiction, constuminterdiction, 0, 0, 9999)
  877. @deffn Table @code{supply-interdiction} u m -> n%
  878. This table is the reduction of supply due
  879. to the presence of an enemy unit of the
  880. given type on the supply line.
  881. A value of @code{100} means that the unit has no effect on supply movement,
  882. a value of @code{0} means that the supply line is completely cut.
  883. Defaults to @code{0}.
  884. @end deffn
  885.  
  886. K151.
  887. DEF_UU_TABLE("spy-see-always-chance", uu_spy_see_always,
  888.     "",
  889.     uuspyseealways, constuuspyseealways, 0, 0, 100)
  890. @deffn Table @code{spy-see-always-chance} u1 u2 -> n%
  891. This table is the chance that if @var{u1}'s spies return information
  892. about a unit of type @var{u2}, then that unit will always be
  893. visible thereafter, as if it were @code{see-always}.
  894. The compromised unit and its side will not be aware that
  895. this has happened.
  896. Defaults to @code{0}.
  897. @end deffn
  898.  
  899. K152.
  900. @deffn UnitTypeProperty @code{spot-movement} t/f
  901. If this property is @code{true},
  902. then the unit's chance to be seen by other sides will be
  903. tested each time the unit moves.
  904. @code{spot-action} implies @code{spot-movement}.
  905. Defaults to @code{true}.
  906. @end deffn
  907.  
  908. K153.
  909. @deffn UnitTypeProperty @code{spot-combat} t/f
  910. If this property is @code{true},
  911. then the unit's chance to be seen by other sides will be
  912. tested each time the unit engages in combat.
  913. @code{spot-action} implies @code{spot-combat}.
  914. Defaults to @code{true}.
  915. @end deffn
  916.  
  917. K154.
  918. @deffn Table @code{see-combat-chance} u1 u2 -> n%
  919. This table is the basic chance to see a unit of type @var{u1} when
  920. in combat with a unit of type @var{u2}.
  921. The location of @var{u1} must be covered by some unit on the viewing side.
  922. This is evaluated for each combat action within a turn.
  923. Defaults to @code{100}.
  924. @end deffn
  925.  
  926. K155. Add to move task to distinguish between "move and enter" and "move in open".
  927.  
  928. K156. In some circumstances (which?), allow plan-tweaking commands to
  929. create and fill in the plan for an incomplete unit.
  930.  
  931. K157. Add an ability to store and act on dated future plans and goals.
  932. Need to be able to evaluate preconditions for plan, so can do only
  933. if makes sense.
  934.  
  935. K158. Doctrine and unit plans should include rules about when units should
  936. attack automatically.  Should be careful or will lose units to foolish
  937. actions.
  938.  
  939. K159. Attack tasks should go after damageable units,
  940. if less than perfect protection, damageable visible occupants.
  941.  
  942. K161. Defense plan should identify what is defended, and what are the threats.
  943. If no threats, unit just tries to stay healthy.
  944. Defender's search for threats should cover a radius computed from
  945. defender's and ward's positions, areas covered by view, speed of threats
  946. (need to see bombers *before* they reach cities, can attack and retire
  947. before anybody can react).
  948. Threats can be recognized directly, or gotten from AI's list of threats.
  949. A unit is a threat if
  950. 1) it can capture or damage the ward
  951. 2) it can cut the ward off from supply or other defenders
  952. 3) it can hurt the defender
  953. To respond to a chosen threat, can 1) attack the threat, 2) interpose,
  954. 3) move the ward, either on own or by carrying.
  955.  
  956. K163. "Intercept/defensive" plan directs units to patrol in an area, attacks any
  957. enemy unit (doctrine defines "enemy") that is of a type that can be
  958. attacked/harassed/blocked (ignore types that we can't do anything about!)
  959. Only some kinds of defensive units are interceptors, others are blockers
  960. or kept in reserve.  Blockers interpose rather than attack enemies,
  961. while reserves avoid contact until plan is changed.  Defn of "reserve"
  962. partly depends on attacker, so fighters intercept bombers but ignore
  963. battleships.
  964. Do as explicit decision in general defense plan.
  965.  
  966. K164. Re-evaluate return if transport moving away too fast.
  967. Calc distance, record as task parameter, check on next
  968. execution of task.  Add AI hook to allow for making transport move
  969. slower or rendezvous with unit needing supplies.
  970. Could have a "home" unit that is preferred if in range, such as
  971. fighters assigned to carriers.  Don't return to transports that
  972. don't have any fuel, unless there is no other choice; check on
  973. each task execution. Special-case
  974. grounding of aircraft if no supply in a base vs starvation of troops
  975. if no food in a base.
  976.  
  977. K165. Exploration plan should set recon vs invasion type, use to decide
  978. about visibility while exploring.  Recon should attempt to gather
  979. knowledge without being seen.
  980.  
  981. K166. If can refuel along a route if chosen correctly, subdivide move task
  982. so as to stop at refuel points.
  983.  
  984. K167. Define a plan type that tracks/shadows units while staying out of sight
  985. as much as possible.  Would have to keep unit within view range but outside
  986. of its view range (and any other coverage, should write something to see
  987. whether a given cell might be visible to enemy), but may have to get
  988. closer to avoid losing trackee.  If unit being tracked seems about to
  989. do some damage, engage instead of shadowing.  May sometimes want to
  990. move to block or slow down trackee's escape.
  991.  
  992. K169. Plans that fail to decide what to do are a potential problem, should
  993. eventually be replaced, but not too often or else warn about replacement.
  994. Track total usages as well as per-turn usage.
  995. Each successive plan for a unit should have a distinct serial number,
  996. display when displaying plan.  (units never share plans)
  997.  
  998. K170. All units should get a chance to replan after acp/mp calculated
  999. but before anybody moves.  Should be fast, since nobody can move
  1000. while this is happening.
  1001. (Interface should be more obvious about this, so less confusion
  1002. about turn change.)
  1003. Give human players a chance to review plans made by high-initiative units
  1004. before irreversibly made (flag review-plans, shows plans of units that
  1005. are selected).
  1006.  
  1007. K171. What about a task to not just resupply but to prepare for a long trip?
  1008. Stock enough to make a crossing, etc.
  1009. Check when doing an approach task, may want to push a "fillup" task.
  1010.  
  1011. K172. Add notion of "supporting" another unit to doctrine, then unit could wake
  1012. up and get involved automatically if combat nearby.
  1013. Should specify by type & distance, as well as particular unit.
  1014.  
  1015. K173. Do general org chart mechanism, as combined plan/task/AI machinery (formal
  1016. limits on action expressed as unit control properties/tables).
  1017. Allow promoting any (or restricted type?) unit to be a commander, and
  1018. assignment of units to commanders.
  1019. Units can have orders to follow cmdr, cmdrs could have utype requisitions
  1020. so production automatically goes to them.
  1021. (Machine player could use this too.)
  1022. Add a display to show how everything relates.
  1023. Define a commander_decide_plan(cmdr, unit) or have cmdr make tasks directly?
  1024. Each commander should have (or appoint) a deputy unit that will get its
  1025. plan data if it dies.  If deputy dies, should work down through orgchart
  1026. to find anyone, only giving up if entire group is gone.
  1027. "Commander" plan is mod of other plan types, cmdr bit is for coordination.
  1028. Cmdr plan includes an "ideal" mix of types to command.
  1029. AI uses to set production, human gets told of cmdr unit's needs somehow.
  1030.  
  1031. K174. If no AI or display on a side, what should units do?
  1032. Will still have doctrine, attitudes, loyalties, so plenty to work from
  1033. Can have and execute plans, combination of game, game design, doctrine
  1034. chooses plans.
  1035.  
  1036. K175. Should be able to set a "build rate" that is slower than "fast as possible",
  1037. to avoid material depletion.  (i.e. use doctrine to set default rate of
  1038. build actions, set actual rate in build task?)
  1039. Define as amt of time to wait before starting build of next type (if the same).
  1040.  
  1041. K176. Define a "meet" task where transport and occ (or whatever pair
  1042. or group) converge on a mutually acceptable place.  Track progress,
  1043. give up if not getting closer.
  1044.  
  1045. K177. If hit/capture task fails because target has disappeared, offensive plan
  1046. should search vicinity of target location for units of matching type.
  1047. (But might be better to let generic task planning take over instead.)
  1048.  
  1049. K178. Goal to move to an area should be satisfied by moving to nearest spot,
  1050. instead of a random point inside.
  1051.  
  1052. K179. Add an "engineering" plan type, with subtypes "make-access" and "block-access".
  1053. Engineering units build access routes
  1054. by adding/removing/modifying terrain, or by building units that serve
  1055. only as bridges.  Should be able to build multi-cell/unit chains in
  1056. difficult cases.  Examples: could bridge one blocking cell by a) building
  1057. a transport unit that ferries, or b) building two connections.  Could
  1058. bridge a single blocking border by building a connection or by removing
  1059. border.  Want to do this for any cell that is very expensive to cross.
  1060. To implement, plan should look for cheapest route assuming that blockage
  1061. has been negated, then build bridges for that route.
  1062. Engineers should also know how to build roads, do that if road movement
  1063. is much faster (such as doubled) than normal movement.
  1064.  
  1065. K180.
  1066. Possibly useful doctrine slots:    
  1067.     short tasklimit;        /* max length of task queues */
  1068.     int respectneutrality;    /* attack neutrals automatically? */
  1069.     int trustallies;        /* rely on allies for transport etc? */
  1070.     short moverandomness;
  1071.     int movestraight;        /* try to move in a straight line? */
  1072.     short backtrackinglimit;    /* how far backwards to look for route */
  1073.     int unitseveraskside;
  1074.     int usemachinestrategy;    /* like setting humanp */
  1075.     int wakeintransport;    /* be awake while in transport? */
  1076.     int avoidbadterrain;    /* avoid dangerous/unproductive terrain? */
  1077.     /* need something generic for event wakeup */
  1078.     int lowsupplyreturn;    /* return to base if supplies low? */
  1079.     short supplyspare;        /* how close to cut low supplies */
  1080.     int repairreturn;        /* return to base for repairs if damaged? */
  1081.     int lowammoretreat;        /* run away if ammo is low? */
  1082.     int lowammoreturn;        /* return to base if ammo is low? */
  1083.     short generosity;        /* how much supply to share with others */
  1084.     int expendable;        /* OK to risk destruction in combat? */
  1085.     short rearm;
  1086.     short repair;
  1087.     short resupply;
  1088.     short ifnearbycombat;
  1089.     short ifnearby[MAXUTYPES];    /* how to react to utype nearby */
  1090.     short aggressiveness;    /* general aggressiveness */
  1091.     short wakeupinterval;
  1092.     short replaninterval;    /* how often to recompute plans */
  1093.     short exploreimportance;    /* priority of exploration */
  1094.     int exploreedges;        /* explore by going around edges? */
  1095.     int buildalways;
  1096.     /* something for move order? */
  1097.     short maxsubordinates;    /* general limit on number of subords */
  1098.     short maxsubordtypes[MAXUTYPES];  /* per-type limit on subords */
  1099.       case K_TASK_LIMIT:
  1100.         side->tasklimit = numval;
  1101.         break;
  1102.       case K_RESPECT_NEUTRALITY:
  1103.         side->respectneutrality = numval;
  1104.         break;
  1105.       case K_AVOID_BAD_TERRAIN:
  1106.         doctrine->avoidbadterrain = numval;
  1107.         break;
  1108.       case K_REARM_PERCENT:
  1109.         doctrine->rearm= numval;
  1110.         break;
  1111.       case K_REPAIR_PERCENT:
  1112.         doctrine->repair = numval;
  1113.         break;
  1114.       case K_RESUPPLY_PERCENT:
  1115.         doctrine->resupply = numval;
  1116.         break;
  1117. DEF_KWD("task-limit", K_TASK_LIMIT, 1)
  1118. DEF_KWD("respect-neutrality", K_RESPECT_NEUTRALITY, 1)
  1119. DEF_KWD("avoid-bad-terrain", K_AVOID_BAD_TERRAIN, 0)
  1120. DEF_KWD("repair-at", K_REPAIR_PERCENT, 0)
  1121. DEF_KWD("resupply-at", K_RESUPPLY_PERCENT, 0)
  1122. DEF_KWD("rearm-at", K_REARM_PERCENT, 0)
  1123.  
  1124. K181. Fix AI so that it obeys real-time limits, and so that if acting as
  1125. assistant, timeout isn't ended prematurely.
  1126.  
  1127. K183. Add ability to have future goals, ultimately be able to script much
  1128. behavior.
  1129.  
  1130. K184. Hit worth should be the general payoff of one-on-one combat.
  1131. First test if combat possible.
  1132. bhw = 0 means breakeven.
  1133. bhw > 0 means always advantageous, < 0 disadvantageous.
  1134. Should account for construction and fuel costs? (is "Strategic worth")
  1135. In practice, tactical needs will outweigh the risks involved in fighting
  1136. when bhw < 0.
  1137. Also account for ability to escape, so less risk?
  1138.  
  1139. K185. Need better weighting of hit prob vs death prob, also relate to goals,
  1140. so unit with low hit prob will still attack another unit if it can win
  1141. the game by doing so.  (implies we need to evaluate importance of goals,
  1142. nearness to achieving them)
  1143.  
  1144. K186. Add a player slot that can be used to set explicit AI goals, would
  1145. take precedence over computed goals.
  1146.  
  1147. K187. Get goals from a hash table instead of creating anew each time.
  1148. Parameters of goal will be read-only.
  1149. get_goal(type, p1, ...)
  1150. change_goal(goal, newtype, newp1, ...)
  1151.  
  1152. K189. Write a stdplay.c that is only applicable if game is similar to standard
  1153. game (examine set of types, but still need to doublecheck numbers).
  1154.  
  1155. K190. Define some sort of generic ai-to-interface display.
  1156.  
  1157. K191. Period converter should add a default favored-terrain = 0.
  1158.  
  1159. K192. Implement Massimo's proposal for morale and feelings:
  1160.  
  1161. @section Morale and feelings
  1162.  
  1163. @subsection Notes
  1164.  
  1165. [@code{feelings} and @code{morale} should be kept orthogonal to
  1166. @code{cxp} and acp-debt.]
  1167.  
  1168. @code{feelings} (towards each side) are ``affinities''; they can be used
  1169. to implement ``loyalty'', ``fear'', etc.
  1170.  
  1171. @code{morale} is a sort of ``self-feeling''; it can implement
  1172. ``heroism'', ``honor'', etc.
  1173.  
  1174. @code{feelings} and @code{morale} can also be used to model ``magic
  1175. spells'', ``bribes'', ``leadership'', etc.
  1176.  
  1177. [remove @code{attitudes-max}, have a feeling towards each side.]
  1178.  
  1179. [I think that the following ``status'', ``effects'', and ``charm'' parts
  1180. are reasonable; the ``change'' parts are very cumbersome, but I couldn't
  1181. come out with something better.]
  1182.  
  1183. @subsection Status
  1184.  
  1185. @deffn UnitProperty @code{feelings} side-value-list@dots{}
  1186. The unit's true feelings towards each side,
  1187. including its own side.
  1188. Defaults to @code{0} for each side.
  1189. @end deffn
  1190.  
  1191. @deffn UnitProperty @code{morale} fp
  1192. The unit's true morale.
  1193. Defaults to @code{0}.
  1194. @end deffn
  1195.  
  1196. @deffn UnitTypeProperty @code{feeling-max} fp
  1197. Sets the range for @code{feelings} and @code{morale} from
  1198. @code{-feeling-max} to @code{+feeling-max}. 
  1199. Defaults to @code{0}, which disables @code{feelings} and @code{morale}.
  1200. @end deffn
  1201.  
  1202. @subsection Morale effects
  1203.  
  1204. All the following modifier add to the given quantity; they are
  1205. proportional to @code{morale} and are given at @code{feeling-max}
  1206. (i.e., they are multiplied by @code{morale}/@code{feeling-max} first).
  1207. They all default to @code{0}.
  1208.  
  1209. @deffn Table @code{surrender-chance-morale-modifier} u1 u2 -> n%
  1210. [use for sieges?]
  1211. @end deffn
  1212.  
  1213. @deffn Table @code{base-production-modifier} u m -> n
  1214. @end deffn
  1215.  
  1216. @deffn UnitTypeProperty @code{acp-per-turn-modifier} acp
  1217. @end deffn
  1218.  
  1219. @deffn UnitTypeProperty @code{disband-chance-modifier} n%
  1220. @end deffn
  1221.  
  1222. @code{disband-chance-modifier} requires of course the introduction of
  1223. @deffn UnitTypeProperty @code{disband-chance} n%
  1224. This is the chance for the unit to disband spontaneously.
  1225. Defaults to @code{0}.
  1226. @end deffn
  1227. Example: setting @code{disband-chance} to @code{0} and
  1228. @code{disband-chance-modifier} negative can model samurais: when morale
  1229. becomes negative (their honor is spoiled), they have a chance of
  1230. disbanding (with @code{disband-message} @code{"commits seppuku"}).
  1231.  
  1232. @subsection Feelings effects
  1233.  
  1234. All the following modifier add to the given quantity; they are
  1235. proportional to @code{feelings} towards the ``other unit's side'' (which
  1236. may often be the ``unit's own side'') and are given at @code{feeling-max}.
  1237. They all default to @code{0}.
  1238.  
  1239. @deffn Table @code{surrender-chance-feeling-modifier} u1 u2 -> n
  1240. [use for sieges?]
  1241. @end deffn
  1242.  
  1243. @deffn Table @code{capture-chance-modifier} u1 u2 -> n
  1244. @end deffn
  1245.  
  1246. @deffn Table @code{withdraw-chance-modifier} u1 u2 -> n
  1247. @end deffn
  1248.  
  1249. @deffn Table @code{control-chance-modifier} u1 u2 -> n
  1250. @end deffn
  1251.  
  1252. @deffn UnitTypeProperty @code{revolt-chance-modifier} n%
  1253. (proportional to @code{feelings} towards the ``unit's own side'').
  1254. @end deffn
  1255.  
  1256. @subsection Morale at creation
  1257.  
  1258. Builders may ``transfer'' their morale/feelings to created units.
  1259.  
  1260.  
  1261. @deffn Table @code{creation-feelings} u1 u2 -> n
  1262. Newly created units start with @code{feelings} equal to n/100 of
  1263. creator's @code{feelings}. Defaults to @code{0}.
  1264. @end deffn
  1265.  
  1266. @deffn Table @code{creation-morale} u1 u2 -> n
  1267. Newly created units start with @code{morale} equal to n/100 of creator's
  1268. @code{morale}. Defaults to @code{0}.
  1269. @end deffn
  1270.  
  1271. @subsection Morale changes
  1272.  
  1273. They all add to the unit's @code{morale}.
  1274. They all default to @code{0}.
  1275.  
  1276. @deffn Table @code{terrain-morale} u t -> fp
  1277. fp is added after each turn to the @code{morale} of u sitting in t.
  1278. Models (dis)-comfort of unit in given terrain.
  1279. @end deffn
  1280.  
  1281. @deffn UnitTypeProperty @code{acp-low-point} acp
  1282. @end deffn
  1283. @deffn UnitTypeProperty @code{acp-low-morale} fp
  1284. @end deffn
  1285. @deffn UnitTypeProperty @code{acp-high-point} acp
  1286. @end deffn
  1287. @deffn UnitTypeProperty @code{acp-high-morale} fp 
  1288. If u is left with less then @code{acp-low-point} acp at the end of a
  1289. turn, @code{acp-low-morale} is added to its @code{morale}.
  1290. If u is left with more then @code{acp-high-point} acp at the end of a
  1291. turn, @code{acp-high-morale} is added to its @code{morale}.
  1292.  
  1293. They model fatigue/rest effects.
  1294. @end deffn
  1295.  
  1296. @deffn Table @code{mp-low-point} u m -> mp
  1297. @end deffn
  1298. @deffn Table @code{mp-low-morale} u m -> fp
  1299. @end deffn
  1300. @deffn Table @code{mp-high-point} u m -> mp
  1301. @end deffn
  1302. @deffn Table @code{mp-high-morale} u m -> fp 
  1303. If u is left with less then @code{mp-low-point} of m at the end of a
  1304. turn, @code{mp-low-morale} is added to its @code{morale}.
  1305. If u is left with more then @code{mp-high-point} of m at the end of a
  1306. turn, @code{mp-high-morale} is added to its @code{morale}.
  1307.  
  1308. They model starvation/abundance effects. [use for sieges? m is
  1309. @code{"food"}]
  1310. @end deffn
  1311.  
  1312. @subsection Feelings changes
  1313. They all add to the unit's @code{feelings} towards the ``other unit's
  1314. side''.  They all default to @code{0}.
  1315.  
  1316. @deffn Table @code{transport-feelings} u1 u2 -> fp
  1317. fp is added after each turn to the @code{feelings} of u1, enjoing the
  1318. ride or the vacation in u2 (which can be a ``resort hotel'').
  1319. @end deffn
  1320.  
  1321. @deffn Table @code{material-transfer-feelings} u m -> fp
  1322. fp is added (for each mp transferred) to the @code{feelings} towards the
  1323. side transferring the material m to u.
  1324. Models pay, bribes ... (m is often @code{"gold"}).
  1325. @end deffn
  1326.  
  1327. @subsection Morale and feelings changes
  1328.  
  1329. They add to the unit's @code{morale}, to @code{feelings} towards the
  1330. ``unit's own side'', or to  @code{feelings} towards the ``other unit's
  1331. side'', according to their keyword.  They all default to @code{0}.
  1332.  
  1333.  
  1334. @deffn Table @code{win-morale} u1 u2 -> fp
  1335. @end deffn
  1336. @deffn Table @code{win-own-feeling} u1 u2 -> fp
  1337. @end deffn
  1338. @deffn Table @code{win-other-feeling} u1 u2 -> fp
  1339. They are applied when u1 destroys u2.
  1340. @end deffn
  1341.  
  1342. @deffn Table @code{hit-morale} u1 u2 -> fp
  1343. @end deffn
  1344. @deffn Table @code{hit-own-feeling} u1 u2 -> fp
  1345. @end deffn
  1346. @deffn Table @code{hit-other-feeling} u1 u2 -> fp
  1347. They are applied when u1 hits u2.
  1348. @end deffn
  1349.  
  1350. @deffn Table @code{wound-morale} u1 u2 -> fp
  1351. @end deffn
  1352. @deffn Table @code{wound-own-feeling} u1 u2 -> fp
  1353. @end deffn
  1354. @deffn Table @code{wound-other-feeling} u1 u2 -> fp
  1355. They are applied when u1 is hit by u2.
  1356. @end deffn
  1357.  
  1358. @deffn Table @code{see-enemy-morale} u1 u2 -> fp
  1359. @end deffn
  1360. @deffn Table @code{see-enemy-own-feeling} u1 u2 -> fp
  1361. @end deffn
  1362. @deffn Table @code{see-enemy-other-feeling} u1 u2 -> fp
  1363. They are applied when u1 sees a hostile unit of type u2.
  1364. @end deffn
  1365.  
  1366. @deffn Table @code{see-friend-morale} u1 u2 -> fp
  1367. @end deffn
  1368. @deffn Table @code{see-friend-own-feeling} u1 u2 -> fp
  1369. @end deffn
  1370. @deffn Table @code{see-friend-other-feeling} u1 u2 -> fp
  1371. They are applied when u1 sees a friendly unit of type u2.
  1372.  
  1373. @code{see-enemy} and @code{see-friend} can be used to implement
  1374. specialized morale/feeling (anti-)boosters: secret police, preachers,
  1375. leaders, dragons, nazguls...
  1376. @end deffn
  1377.  
  1378. @deffn Table @code{capture-morale} u1 u2 -> fp
  1379. @end deffn
  1380. @deffn Table @code{capture-own-feeling} u1 u2 -> fp
  1381. @end deffn
  1382. @deffn Table @code{capture-other-feeling} u1 u2 -> fp
  1383. They are applied when u1 is captured by u2.
  1384. @end deffn
  1385.  
  1386. @deffn UnitTypeProperty @code{change-side-morale} fp
  1387. @end deffn
  1388. @deffn UnitTypeProperty @code{change-side-own-feeling} fp 
  1389. @end deffn
  1390. @deffn UnitTypeProperty @code{change-side-other-feeling} fp
  1391. They are applied when u changes side (own is the ``old'' side, ``other''
  1392. the new side).
  1393. @end deffn
  1394.  
  1395. @deffn UnitTypeProperty @code{revolt-morale} fp
  1396. @end deffn
  1397. @deffn UnitTypeProperty @code{revolt-own-feeling} fp 
  1398. They are applied when u revolts.
  1399. @end deffn
  1400.  
  1401. @subsection Charm
  1402.  
  1403. This action can model magic spells, terrorism, psychological weapons,
  1404. propaganda, bribes, etc.
  1405.  
  1406. @deffn ActionType @code{charm} unit
  1407. This is the action that a unit performs to modify the @code{morale} and
  1408. @code{feelings} of another unit.  The unit must be visible and within
  1409. @code{charm-range} to be charmed. 
  1410. @end deffn
  1411.  
  1412. @deffn UnitTypeProperty @code{charm-range} dist 
  1413. Defaults to @code{1}.
  1414. @end deffn
  1415.  
  1416. @deffn Table @code{charm-friend-chance} u1 u2 -> n% 
  1417. The chance of charming a friendly unit.
  1418. Defaults to @code{0}.
  1419. @end deffn
  1420. @deffn Table @code{charm-enemy-chance} u1 u2 -> n%
  1421. The chance of charming a hostile unit.
  1422. Defaults to @code{0}.
  1423. @end deffn
  1424.  
  1425. @deffn Table @code{acp-to-charm} u1 u2 -> acp
  1426. This is the number of acp a unit uses to do one charm action.
  1427. Defaults to @code{1}.
  1428. @end deffn
  1429. @deffn Table @code{charm-consumption} u1 m -> mp
  1430. This is the amount
  1431. of u1's supply used up in one charm action.
  1432. m is usually something like @code{"mana"} or @code{"gold"}.
  1433. Defaults to @code{0}.
  1434. @end deffn
  1435.  
  1436. @deffn Table @code{charm-morale} u1 u2 -> fp
  1437. Added to u2's @code{morale} if charm is successful.
  1438. Defaults to @code{0}.
  1439. @end deffn
  1440. @deffn Table @code{charm-own-feeling} u1 u2 -> fp
  1441. Added to u2's @code{feelings} towards its side if charm is successful.
  1442. Defaults to @code{0}.
  1443. @end deffn
  1444. @deffn Table @code{charm-other-feeling} u1 u2 -> fp
  1445. Added to u2's @code{feelings} towards u1's side if charm is successful.
  1446. Defaults to @code{0}.
  1447. @end deffn
  1448.  
  1449. @subsection Relaxation
  1450.  
  1451. @deffn UnitTypeProperty @code{morale-relaxation} n
  1452. @end deffn
  1453. @deffn UnitTypeProperty @code{own-feelings-relaxation} n
  1454. (for the unit's own side)
  1455. @end deffn
  1456. @deffn UnitTypeProperty @code{other-feelings-relaxation} n 
  1457. (for all the other sides)
  1458.  
  1459. They default to @code{100}.
  1460. @end deffn
  1461.  
  1462. At the and of each turn, the old values of @code{feelings} and
  1463. @code{morale} are multiplied by (the appropriate) n/100; then all the
  1464. previous modifiers are added; the result is rounded to an integer in the
  1465. usual (stochastic) way to obtain the new @code{feelings} and
  1466. @code{morale}.
  1467.  
  1468. @subsection Missing
  1469.  
  1470. @code{revolt-chance} modifier for occupants (and nearby units).  Then,
  1471. using with @code{revolt-chance-modifier} and assuming that a
  1472. newly-captured unit retains a ``bad'' feeling towards the old enemy, you
  1473. will have to guard a newly-captured unit (with your ``secret police''?)
  1474. until its feeling towards you improves.
  1475.  
  1476. Effects of side behavior: d.o.w. or breaking a treatise should modify
  1477. feelings of (certain) units.
  1478.  
  1479. Effects of weather.
  1480. (end of proposal)
  1481.  
  1482. K193. Add a help node with properties of world (day/night for instance), install just
  1483. before unit type nodes.
  1484.  
  1485. K194. Kernel should be able to do a system reset - all data structures
  1486. and all allocation, so that a different game can be started up.
  1487.  
  1488. K195. Write goals as separate forms, make xrefs to them.
  1489.  
  1490. K197. Use obstacks for building up help text.
  1491.  
  1492. K198. Only cache a limited number of help node texts, flush oldest when limit reached.
  1493.  
  1494. K199. If unit being read-in is at a location where it would vanish, but there is a
  1495. transport in that cell that will not vanish there, put the unit on the transport.
  1496.  
  1497. K205. Add a way to make captured units disappear from game automatically.
  1498.  
  1499. K207. Fix details of roundup/down calculation for movement points.
  1500.  
  1501. K209. Add a way for occupants to escape destruction of a transport as well
  1502. as its capture.
  1503.  
  1504. K211. Include values such as @code{enforced} and @code{publicity} for agreements?
  1505.  
  1506. K212. Add symbols for agreement states.
  1507.  
  1508. K213. Implement scorekeeper messages (or eliminate property).
  1509.  
  1510. K214. self-required should also have a related side property?
  1511. [rounding-down advantage should not eliminate one needed as self-unit?]
  1512.  
  1513. K215. Allow a null unit to transfer-action to be act of discarding material?
  1514.  
  1515. K216. [effects of coating should be increased attrition, decreased
  1516. productivity, decreased activity and mobility]
  1517.  
  1518. K217. Make temperature-year-cycle an area property.
  1519.  
  1520. K218. Add some way to specify which side a unit in revolt goes over to.
  1521. What if the side didn't want the unit?
  1522.  
  1523. K219. In statistics, record and report fates of incomplete units separately.
  1524.  
  1525. K220. Add fire consumption and material requirement different from generic
  1526. attack requirements.
  1527.  
  1528. K221. For each scorekeeper, add an internal flag that saves applicability
  1529. of scorekeeper, also calc for current turn - if changed, then AI
  1530. analysis code should re-run.
  1531.  
  1532. K222. Be able to save individual properties along with ids to match with units.
  1533.  
  1534. K223. Add option to save a map rotated, at least by 60-deg increments.
  1535. 60 left, 1st hextant formula is y' = x + y, x' = -y, etc.
  1536.  
  1537. K224. Write dice specs as dice specs, not large numbers.
  1538. Must record for each table/property that number *is* a dice spec or what.
  1539.  
  1540. K226. Implement unit layer for large worlds using some sort of tree search
  1541. to find unit at x,y and not allocating unit layer at all.
  1542.  
  1543. K227. unit_desig should format typename into minimum space, determined dynamically.
  1544. Assign chars, if defined, as shortest names, then add longer names to
  1545. uniquify names after the first using a particular char.
  1546.  
  1547. K228. Collect/write stats on each call to run_game - # unit scanned, # acted,
  1548. # actions, # plan executions.  Also classify by type and side.
  1549.  
  1550. K230. Add a way to send/broadcast messages anonymously.
  1551.  
  1552. K231. Extend "bridge" table to distinguish from/to terrain, and to apply to
  1553. assaults as well as captures.  Come up with a new name for it.
  1554.  
  1555. K232. Further compress layers by including info about # bits (1,8,16)
  1556. and recording several values as bitfields in a single char.
  1557.  
  1558. K233. Define zz-s-u-n as cache for shortest name (down to 1 char if possible,
  1559. but confusing if only some have one-char names, others are all-but-one
  1560. char of name, etc)
  1561.  
  1562. K234. Define a can_occupy_without(...,exclunit) that indicates room if given other
  1563. unit is *not* counted (since it will be removed shortly, for instance)
  1564.  
  1565. K235. For all units on a side, keep sorted by type, keep ptrs to start of each
  1566. type, use to index faster.  Could even maintain separate chains for each type.
  1567. Define a for_all_side_units_of_type(side,type,unitvar) iterator.
  1568.  
  1569. K236. Optimize mapping side and unit ids back to objects themselves.  Use hash
  1570. table for units (hash on low bits of id), direct table for sides.
  1571.  
  1572. K237. Add option to "add" form to modify layers in area, a la
  1573. (add area <layer> x,y[,w,h] <xform>), where <xform> could be to add or subtract,
  1574. or a conditional such as (if mountains then ice).
  1575.  
  1576. K238.
  1577. Klast.
  1578.  
  1579. --Mplayer AI
  1580.  
  1581. M1. If game win is to own a particular type of unit, then set goal to own
  1582. one.  If can build, then start building and defend builder.  If unit
  1583. known to exist (how?), set goals to find and to capture.  If unit is
  1584. mobile, or if might be carried by mobile unit, set up a search pattern, and ?
  1585.  
  1586. M3. To do patrolling/picketing, space units so that few or no holes in coverage.
  1587. In theater being covered, check view dates and send units to update oldest
  1588. information - should be closest unit or one assigned to cover.  Could therefore
  1589. have a patrolling unit that only moves very little since its view range covers
  1590. nearly entire assigned area.  Allowable age of views depends on what sort of
  1591. surveillance is avail, how many units are assigned.
  1592.  
  1593. M4. Derive acceptable risks from goals - unit that is crucial to game should not
  1594. risk self, disposable types can be sacrificed.
  1595.  
  1596. M5. Construction calculations should prefer multi-purpose units, but randomize if
  1597. values close together.  (Test by making game variants with ultra-powerful
  1598. units, should see mplayer shift to building all the time.)
  1599. Each goal should be characterized timewise, so mplayer can start builds and
  1600. have units ready when goal becomes relevant.
  1601.  
  1602. M6. For each type of goal in game, decide which units help accomplish and how
  1603. well, which units support indirectly, etc.  Also classify by short/long term
  1604. value - short-term is 5-10 turns or 1/10 of game, long-term is length of game.
  1605.  
  1606. M7. When exploring world,
  1607. use knowledge of country size to optimize search, by spacing out explorers,
  1608. not filling in details of terrain until later (is diff, low-priority goal,
  1609. maybe subsumed by patrolling).
  1610.  
  1611. M8. Prefer to hit or capture transports, especially if easier way to bag
  1612. or destroy the occupants.
  1613.  
  1614. M9. Keep a persistent layer of "sightings" (or linked list if can be short),
  1615. record into when nonempty cell in view array is about to be cleared
  1616. during a turn (need hook from vision code).  Date sightings, clear
  1617. periodically.
  1618.  
  1619. M10. Need a way to estimate units hidden in transports, so can freak out
  1620. over approaching transports.
  1621.  
  1622. M11. Compute desired number of depot types by calculating the spacing
  1623. between necessary to ensure that each can supply another.
  1624.  
  1625. M12. If only one builder available, should "timeshare" it properly.
  1626. Plan should track what has been produced, reduce preferences as more and
  1627. more of a type gets built.
  1628. Test with old-empire.
  1629.  
  1630. M13. Add heuristics to try to build bases at key or useful locations.
  1631.  
  1632. M14. If scorekeeper body says something about testing possession on a given
  1633. turn, then make occupation a goal from the start.
  1634. If occupation goal unsatisfied, assign units to occupy, give each
  1635. the same goal, should also attempt to clear the area.
  1636. If satisfied, assign unit to defend the area (need to write "how
  1637. to defend" code?), possibly patrol around if everything not always
  1638. visible.
  1639.  
  1640. M16. If contacted more than one side, choose a side to concentrate on
  1641. (closest most likely), act defensively against other sides (but
  1642. still take opportunities).  May need to change emphasis if another
  1643. side turns out to be most threatening (tell this by tracking apparent
  1644. success w.r.t. each side).
  1645.  
  1646. M17. Shift from offensive to exploration if everybody disappears.
  1647. Track max # of enemy ever seen and on which turn(s).
  1648. Should be persistent in covering area near last spotting of units.
  1649.  
  1650. M16. When a unit executes its plan, routines like find_target()
  1651. either get a value from AI or search around (implicit "nobrains" AI?).
  1652. (AI should have prioritized list of targets composed already and
  1653. sorted by theater and goal etc.)
  1654.  
  1655. M19. If parts of world view not necessarily up-to-date, need to do pickets
  1656. or patrols to guarantee as much coverage as possible. (use view dates)
  1657.  
  1658. M20. If moderate-to-high chance of capture by unit surround, put units in
  1659. lines and other formations that can't be surrounded easily.
  1660.  
  1661. M21. A side should act primarily defensively if it satisfies a goal,
  1662. but the game is not over and another side could take away.
  1663.  
  1664. M22. Guess at likely theater for contacts, carve out of existing theaters,
  1665. reassign/replan *all* units.
  1666.  
  1667. M23. Track contacts with other sides on a per-theater basis.
  1668.  
  1669. M24. Mplayer should compute which types are mostly likely to be in play
  1670. at present, and at future times.  Can look at initial setup, construction
  1671. times, etc, and ignore types that can't possibly appear.
  1672.  
  1673. M25. Mplayer should attempt to compute numbers of units and material needed
  1674. to achieve a goal, to some level of confidence, then set "buildup" plans -
  1675. some units explore/patrol etc, then when buildup finished, should plan
  1676. large-scale attack, from several directions if possible.  Reserve units
  1677. should hang around transports, but not sit on them unless transport protected.
  1678.  
  1679. M26. Use people sides to adjust theather boundaries sometimes. (how?)
  1680.  
  1681. M27. If chance to surrender by siege > 5%, compute an ideal frontage, minimizes
  1682. chance of units getting isolated.
  1683.  
  1684. M28. Could do formations by reshaping theaters.  Units mass on edge, don't go past
  1685. until mplayer directs an offensive.  If offensive successful, mplayer adds gains to
  1686. theater.
  1687.  
  1688. M29. If returning to a moving transport, and transport destination is further away,
  1689. push a "wait" or "rendezvous" task onto transport's queue.
  1690. Rendezvous task should estimate time of expected rendezvous, fail only
  1691. if actual time is 1 1/2 longer than expected time.
  1692.  
  1693. M31. For each theater, distinguish
  1694. recent vs older sightings, with exponential backoff (1-2 turns ago,
  1695. 3-5, 6-10, 11-20, etc).
  1696.  
  1697. M32. AI should have a chance_to_own_one_of_type(side, side2, u) that the side's
  1698. current estimate of the likelihood of the given side2 owning at least one
  1699. unit of the given type.
  1700.  
  1701. M33. Need special code to know how to defend bridgeheads, recent captures,
  1702. etc.  Reduce theater size or focus on immediate vicinity.  Own units
  1703. in "enemy" theater (define) should be defended against the most
  1704. immediate threats.  Look around for threats or potential threats.
  1705. Assign best units to deal with threats.
  1706.  
  1707. M34. Have machine player compute general dependency chains for its strategy.
  1708. For instance, "need miners to produce uranium from mountains
  1709. to build nukes to attack cities".
  1710. Should be "lazily" computed, as needed to achieve basic goals.
  1711. Strategy code works by calculating a plan that consists of steps
  1712. to reach the goals.  Plan is sufficiently detailed when side can
  1713. tell each unit what to do, or doctrine has the same effect.
  1714. Not always totally deterministic, how does this work?
  1715.  
  1716. M35. Unit type analysis should be based on average outcome, plus worst/best-case
  1717. outcomes if not maybe not expecting enough action to let things average out.
  1718.  
  1719. M36. To estimate materials, scan world, for each unit image, add survival
  1720. needs to min est, stockpile - avg operating costs to likely est,
  1721. total storage capacity to max est.  Can use actuals for own and allies.
  1722. Similar for terrain and population.
  1723.  
  1724. M37. Unit first spotting human enemy should disappear as quickly
  1725. as possible, might escape before human notices. (exploratory plan only)
  1726. Purely exploratory/recon units should generally avoid combat, try to escape
  1727. and stay hidden if possible.
  1728.  
  1729. M39. To decide when to make bases, do if can create supply, can xfer from
  1730. further than units can, can protect units in or near base.
  1731.  
  1732. M40. Do base construction as 1) moving to construction site, 2) building, and
  1733. 3) carrying to final site.  (Must verify that base or parts of base can
  1734. be carried.)
  1735.  
  1736. M41. When exploring and switching theaters, shift both to inner and outer
  1737. theater (actually an abutting theater of any sort).
  1738.  
  1739. M42. When enemy unit spotted in a zone, decide if unit is part of larger
  1740. group (like a country), what kinds of units might be present (similar,
  1741. sessile, etc).
  1742. If unit is isolated, decide if it is a threat in any way, if so, make
  1743. a goal "enemy gone from x,y" and assign units to work on this goal,
  1744. with types and numbers sufficient to the job.  Can borrow from nearby
  1745. theater if not too time-consuming.
  1746. If group, decide importance (home country being most important),
  1747. also assign # units, maybe make theater, track strengths, # units
  1748. enroute, and # still needed.
  1749. Distinguish units that are dangerous alone and ones that are carriers.
  1750. An army that is 2 cells away from capturing a self-unit should have
  1751. a maximal threat, since loss of game is certain if threat not counteracted.
  1752.  
  1753. M43. Machine player should attempt to infer other sides' strategies.
  1754. side->strategy->other_side_analysis[nsides]
  1755. If no player on other side, record that other side will not do
  1756. anything (and go after to build territory).
  1757. If has a display, record as "more dangerous", use as a reason to
  1758. ally with other AIs in game.
  1759. Sides with displays should also be considered "more unpredictable".
  1760. If AIs ally, should be temporary, since game won't end even if all
  1761. are allied.
  1762.  
  1763. M44. Define an "importance" of activities that gets divvied up among
  1764. subcommanders, so overall plans can be set aside temporarily while
  1765. individuals deal with immediate threats.
  1766.  
  1767. M45. Mplayer code should look for "choke points" that are standard
  1768. routes between important places and around obstacles.  Calculate from
  1769. world and utypes, share among all machines (don't use if haven't seen
  1770. yet!).
  1771.  
  1772. M46. Add code to negotiate for neutrality/ally status.
  1773.  
  1774. M47. Mplayer should prefer goals with fewest dependencies (prereqs) and
  1775. quickest time to completion.  Prereqs mean conditions that must be
  1776. true before main goal is worthwhile attempting, but are not formal
  1777. requirements - goals are intrinsically self-contained.
  1778.  
  1779. M48. Scorekeeper analysis:
  1780. if keeping score
  1781.   make overall goal to win
  1782.   call make_subgoals
  1783. else amuse self by being random
  1784. if goal is to win
  1785.   for each scorekeeper
  1786.     if last-side-wins, ... (already done)
  1787.     else scan body looking for if's and do's
  1788.     (might be too complicated, should announce the fact as a warning
  1789.     "too complicated for me, don't know how to play" and drop
  1790.     back to simpler if mistaken goals) (or resign?)
  1791.     if body is "(if <test> win/lose)"
  1792.       make the satisfaction of the test a goal
  1793. if goal is to make a side lose
  1794.   if can be accomplished by eliminating a side's nonzero-value units,
  1795.   set goals to destroy/capture each type
  1796.   if not all visible, set goal to find units
  1797.     if type can move, goal is to keep info about world up-to-date;
  1798.       no random walking, always move to update oldest spots (but
  1799.       only in terrain where units could be)
  1800.     if type can't move, goal is to have examined all possible
  1801.       terrain.
  1802.  
  1803. M50. Designer should be able to toggle flags for mplayer,
  1804. force reevaluation etc.
  1805.  
  1806. M51. Come up with a way to prove that mplayer doesn't cheat by looking
  1807. at structs?  Could add a "sneaker" unit to some game that is always invisible,
  1808. would never be noticed or attacked unless mplayer cheats.
  1809.  
  1810. M52. If in a multiplayer game, one side is becoming much stronger, ally with
  1811. other weaker sides.
  1812.  
  1813. M53.
  1814. Mlast.
  1815.  
  1816. --Interface
  1817.  
  1818. I1. Add mechanism to display pictures in the background of a map, instead of
  1819. terrain cells/bords/conns.
  1820.  
  1821. I3. When game ends, see-all should become true for all displays, redraw
  1822. all maps automatically.
  1823. Interfaces should better declare when the game has been ended
  1824. arbitrarily (such as by running out of turns).
  1825.  
  1826. I4. Come up with a way for update_unit_display to not redraw cell until
  1827. all units in cell updated.
  1828.  
  1829. I5. Add help node for instructions. (but don't include instructions not
  1830. known to all sides).
  1831.  
  1832. I6. Allow typing prefix arg as prefix (or suffix ?) to long commands.
  1833.  
  1834. I7. Add way for player to declare if AI is assisting by default, or in
  1835. charge by default.  AI decision about whether to end a turn should
  1836. also be controllable.  Similarly for resignation.
  1837.  
  1838. I9. Add idle-timeout, default to 60 secs.  If no player action, and all other
  1839. players finished turn, do a finish_turn.
  1840.  
  1841. I10. Add a tabular form displaying side relationships (trust, willing to draw, etc).
  1842.  
  1843. I11. Add a way to get explanations of action and task failures, needed to
  1844. explain non-functioning in game designs.
  1845.  
  1846. I12. If gdl command is done, all help nodes should be invalidated.
  1847. Similarly for many internal arrays (bleah).
  1848.  
  1849. I13. Distinguish two kinds of "go to next" consistently - unit that would normally
  1850. be queried about next (if current unit not moved so as to require scrolling),
  1851. ignore current unit until all others on side have moved.
  1852.  
  1853. I14. Autoscrolling should always position so that each adjacent cell to a unit
  1854. also shows *entire* adjacent cells, all around.
  1855.  
  1856. I15. Lists of units should also be able to display glimpses, just omit data
  1857. that is not available (what about names? might be tough to save names
  1858. with glimpses)
  1859.  
  1860. I16. Need some sort of default grammar used when game designs don't want
  1861. to add anything special.
  1862. Copy ^0, ... concept for format strings generated by grammars.
  1863. Use grammar idea for narrative generation.
  1864. Do for actions, notable backdrop events, summaries.
  1865. (text disband-narrative
  1866.   (self infantry (actor "goes home"))
  1867.   (u* bomb (actor "dismantles" actee))
  1868.   )
  1869. Match on action args to choose sentence, allow multiple weighted choices
  1870. for variety, be able to tailor for each side.
  1871. Should be able to do both present and past tense generation.
  1872. Routine is describe_thing(side(s), generator, parms[10]).
  1873. (Would be generally useful to have a side-to-bit-vector conversion routine...)
  1874. "Narrative" different from "message", is past sense, while "message"
  1875. describes ongoing things.
  1876. Need to do narrative descriptions / events for notable backdrop events
  1877. such as migrations, storms, etc.
  1878.  
  1879. I18. Add an imf procedure to compute actual bbox of nonzero bits/mask in an image,
  1880. use to position emblem adjacent to unit image, etc.
  1881.  
  1882. I19. When drawing elevation changes, draw a gray line at cell edges to indicate
  1883. the "crease".
  1884.  
  1885. I20. To indicate slope, draw center of cell with shape for next smaller mag,
  1886. then sloping rects joining adjacent edges of cells, then triangles around
  1887. each 3-way meet (for hexes anyway) to fill in holes.
  1888.  
  1889. I21. Should not be able to appear to attack if attack not allowed
  1890. (arty in ww2-bn for example).
  1891.  
  1892. I22. Add designer save option to write only some props of a unit, such as
  1893. position, and write as (unit <id> <props>), using name, number or id
  1894. as identifier.
  1895.  
  1896. I23. Use generic names when summarizing types at a location or in a transport.
  1897.  
  1898. I24. Add a side->ready_to_start that each player must enable before actual
  1899. game play starts.  Initially false for all sides, mplayer sets when
  1900. init done, interfaces enable at player's direction.  Could be button
  1901. or implicit when player tries to move.  Note that if multiple humans, and
  1902. one tries to move, move will not actually happen until everybody either
  1903. tries to move or else clicks on the start button.
  1904.  
  1905. I26. Interface should indicate a "move near" plan with a multiple lines
  1906. indicating radius, and circle around destination.
  1907.  
  1908. I27. Direction cmds in dir of blocking terrain but adj to a slideable
  1909. border should cause a border slide. (also for move tasks?)
  1910.  
  1911. I28. Linear terrain should be affected by night - draw half-black mask.
  1912.  
  1913. I29. Command "ai" toggles between default aitype (first valid type in list
  1914. of types - generic mplayer should be first always?) and none, while "ai <name>"
  1915. switches to particular ai type.
  1916.  
  1917. I30. Add ability to switch to alternate color/icon schemes, such as
  1918. winter camouflage for panzer, or military vs pictorial icons.
  1919.  
  1920. I31. Add mechanism so that messages get echoed back, for confirmation
  1921. of contents mainly.
  1922.  
  1923. I33. When displaying perspective, show both top and bottom of "thick" terrain.
  1924.  
  1925. I34. For textual commands, interpret <tab>, extend words, etc.
  1926.  
  1927. I35. Handle some glimpses as special event types, such as spotting occupants
  1928. in a unit, instead of trying to draw on display somehow.
  1929. Call glimpse_unit(side, unit).
  1930.  
  1931. I36. Don't say, for instance, "independent 2nd wreck" in textual displays,
  1932. but just "wreck" - both in topline displays and narratives.
  1933.  
  1934. I37. A game design should be able to specify a per-side optimal centering
  1935. for the initial view.  Side property "center-at".
  1936.  
  1937. I38. Add some kind of sort key control to help info for commands.
  1938.  
  1939. I39. Add more help nodes to explain general concepts like acp.
  1940. Describe each general concept that is enabled for the given
  1941. game, otherwise say "no xxx in this game".
  1942.  
  1943. I40. Add table info to help nodes displayed by both first and second indices
  1944. (so for ut table, info is listed in a unit node and also in a terrain
  1945. node), plus add an additional node for the table alone.  Should table
  1946. help nodes be on a separate chain?
  1947.  
  1948. I41. Add generic commands to go up and down; '-', '+'.
  1949. Arg specifies size of change, default is 1/2 of distance to lower/upper limit
  1950. on altitude.  Use long name command "alt <n>" to set altitude explicitly.
  1951.  
  1952. I42. Allow definitions of images that constitute the border between two given
  1953. ttypes, or t1/t2/border combos, etc.  Store in global additional-images
  1954. or special-terrain-images
  1955. as list where each element is like (<ttype> (<ttype> <dirs...>) ... "image-name")
  1956. where first ttype is main cell type, succeeding indicate either linear
  1957. in given directions, or adjacent cells of given types in given directions.
  1958. image-name is the image or family name to use.
  1959. Example? (beach (terrain (ne sea) (half (n sea) (s beach)))
  1960.        (border (w nw) river)
  1961.        "beach&sea&river-1")
  1962.  
  1963. I43. Add "angle" and "facing"  image properties that indicate approximate orientation and
  1964. direction being viewed from (side, top, 30 degrees, etc).
  1965.  
  1966. I44. Add "dirmask" (or list of dirs) to images that may be used for linear
  1967. terrain.
  1968.  
  1969. I45. Some images in imf may be precalced for a hex or other shape,
  1970. need to indicate specially.
  1971.  
  1972. I46. Need keywords for images to tie less specific images at smaller
  1973. scales to more detailed ones - "su-85" -> "tank", etc.
  1974.  
  1975. I48. Need a way to indicate relative precedence of sort keys in list windows.
  1976.  
  1977. I49. When in mono, allow choice of small numbers or letters for side, instead of
  1978. emblem.
  1979.  
  1980. I50. At high mag powers (emblem width < 1/4 cell width), draw people emblems on each
  1981. border of hex next to hex with different people.
  1982.  
  1983. I51. Define a -h <n> that sets up and waits to get pings from human players.
  1984. Like -e <n>.  Kernel only has "wait for <n> remote players", cmdline
  1985. does the -h part. -wait <mins> to say how long to wait before going
  1986. ahead, also allows players to get impatient and start anyway.
  1987. Ideally, the startup host gets a window or command interface
  1988. to control the startup process, see who is in, perhaps edit
  1989. display specs.
  1990.  
  1991. I52. Players should be able to join above by doing "xconq -join host nnnn [-help]".
  1992. Help shows description of game and list of players/sides; say "(available)"
  1993. if side is waiting for a player, ask terminal for a side number to join in on.
  1994. Serving game must open a socket to listen.  If under X11, program can quit
  1995. once display is open; for others, program will continue to run.
  1996.  
  1997. I53. Game should be able to spec relative or absolute widths of borders
  1998. and connections (used when solid or a pattern).
  1999.  
  2000. I54. Should be able to, from cmdline, list available player slots in a remote
  2001. game without actually trying to get in.
  2002.  
  2003. I55. Should be able to parse dates in commands,
  2004. omit parts that are same as current value (such as year).
  2005. Date string function should cache stuff, so not always allocing new
  2006. strings.
  2007.  
  2008. I56. Robustify the initial and random date parsing.
  2009.  
  2010. I57. Add a text parser etc for specifying units and types.  parse_[urt]type,
  2011. parse_unit should be able to recognize ambiguous matches, either return
  2012. # results or report of multiple, be able to process each independently,
  2013. put in dialog, etc.  parse_feature to locate geo geatures by name.
  2014.  
  2015. I58. Kernel should deliver basic formatting info in help text, let interface
  2016. digest - need line breaks, text fill, tabs/tabstops, emphasis/bold (use
  2017. ^B,^P,^I chars?).  Perhaps some way to name a picture and let interface
  2018. fill in actual picture.
  2019.  
  2020. I59. Do something in general for reporting destinations, choices are
  2021. raw coords, dir/dist, or a dest name of some sort (unit or region).
  2022. Useful to have optional map scale to report distances in miles etc?
  2023. Examples: "in xxx country" (needs defn of country)
  2024. (define gvar "start-area-name" that gives name?)
  2025. "NE of country" "E of Foo Bar" "in <region>"
  2026. Function is position_desc(buf, side, x, y), where side==NULL means
  2027. do for omniscient side,.
  2028. also define position_desc_relative(buf, side, x, y, x2, y2).
  2029.  
  2030. I60. If info is always accurate and up-to-date, calculate display directly
  2031. from state.  If might be unknown at first, but always accurately
  2032. known once discovered, keep a bit/piece of info, display from state
  2033. if bit is on, else show nothing.  Similarly for info that might
  2034. get out of date if observer not present?
  2035. If info might be known/unknown and right or wrong, then must maintain
  2036. full copy, though can forward to real state if internally known to be
  2037. accurate.
  2038.  
  2039. I63. Add designer tool to paint theaters for AIs.  Should just be a hook to AI
  2040. that is interpreted as AI prefers.
  2041. AI should report range of integer values (with optional names) to paint.
  2042.  
  2043. I64. In perspective view, displace units by both elevation of cell and their
  2044. altitude above it, maybe draw shadow on ground if airborne.
  2045. Center unit in cell better (?).
  2046. Shade slopes in perspective view according to time of day.
  2047.  
  2048. I65. To support multiple natural languages, associate one of several languages
  2049. with each side, use to invoke nl-specific nlang.c/help.c routines.
  2050. Also have separate command definitions (de-cmd.def, fr-cmd.def, etc)
  2051. that interface should be able to use instead.  Each interface, if configured
  2052. for it, will have to set up all the command tables, so can be chosen
  2053. by each side at game startup.
  2054. Would need some sort of function vector setup so as to select the right
  2055. set of routines dynamically.
  2056.  
  2057. I66. Add interface-independent printable output of all help info.
  2058. Add as "save topic", "save all" commands to help dialogs.
  2059.  
  2060. I67. In printed map, make grid be gray, draw only around known-about terrain.
  2061. Draw area edge in light gray if adj cells not known terrain.
  2062. Use halftones or patterns instead of bitmaps possibly, add a
  2063. color -> grayscal translation process.
  2064. General cmd should be "print [window] [width]", where saying "window"
  2065. limits to contents of a window (else whole area is printed), and width
  2066. gives physical width of map, default is to fit on one page.
  2067. Each page should include a legend showing terrain, units, sides, use
  2068. up to four columns at bottom of page, run types together in columns to
  2069. save space. (Ditto for text/ascii view.)
  2070.  
  2071. I68. Common printing code handles layout setup, layout checking, and actual
  2072. computation of printed view.  Interface handles any print setup dialog,
  2073. plus final disposal of printed view (to file, to print queue, etc).
  2074.  
  2075. I69. All interfaces should have all printing methods available.
  2076.  
  2077. I70. At end of a turn, display summary/histogram of action/task/plan types
  2078. and outcomes. (debugging display?)
  2079.  
  2080. I71. Define a general (all-interface) strategy for guaranteeing image
  2081. consistency on screen.
  2082.  
  2083. I72. Add ability to select direction of perspective view.
  2084. Easier if only one of NUMDIRS dirs allowed.
  2085.  
  2086. I73. Clarify rules of how immobile units get on transports.
  2087.  
  2088. I74. When autoscrolling, interfaces should support a brief delay option
  2089. so that players can see the outcome of a unit's last move for the turn.
  2090. Can omit if next unit is close by and no scrolling was needed.
  2091.  
  2092. I75. Add ability to supply phrases for table row display in help:
  2093. "[can create] by default, [except for] base,town,city".
  2094. These would be optional non-null args to table display routines.
  2095.  
  2096. I76. Skelconq should examine lib.imf directly during setup, report
  2097. on which images were found for the game being loaded if debugging
  2098. on, warn if images not found.
  2099.  
  2100. I77. Image tools should be able to study colors and colorized images
  2101. usefully somehow.
  2102.  
  2103. I78. Let images refer to colors by name.
  2104.  
  2105. I79. Allow images to refer to palettes by name and colors by index.
  2106.  
  2107. I80. Add run-length encoding to image data, important for 32x32 and up.
  2108.  
  2109. I82. To describe movement abilities, display both mp and "move range over
  2110. a given terrain type", which may be much less.
  2111.  
  2112. I83. Interface should complain if no color and no image found for terrain
  2113. type.
  2114.  
  2115. I84. Reduce amount of redrawing of unit due to display updates for state changes.
  2116.  
  2117. I85. Fix m_nearest_cell to account for perspective views.
  2118.  
  2119. I86. Notify of supply-related deaths.
  2120.  
  2121. I88. Support distinct images for individual units, via an extras property.
  2122. Maintain id->image table (hash table? do sizes as well).
  2123.  
  2124. I89. Split command help into separate single-char and long-name nodes.
  2125.  
  2126. I91. Implement agreement-building interface:
  2127. draft <typename> <id> [<title>] [<short-title], to create
  2128. drafters [<id>] sides, to add sides to drafting committee
  2129. proposers [<id>] sides, to add sides to list of proposers
  2130. signers [<id>] sides, to add sides to list of signers
  2131. known-to [<id>] sides, to add sides to list of who gets told about agreement
  2132. terms [<id>] [=/-] terms, to add/remove terms to an agreement (only drafters may do)
  2133. propose [<id>], to reveal proposed agreement
  2134. sign <id>, to sign it
  2135. show-agreement <title/id> to display a given agreement
  2136. list-agreements to list all of them known to a side
  2137.  
  2138. I92. Add ability to specify what sorts of events get presented
  2139. to players.
  2140.  
  2141. I93.
  2142. Ilast.
  2143.  
  2144. --Documentation
  2145.  
  2146. D4. List or index commands both alphabetically and by general function.
  2147.  
  2148. D8. In manual, describe each table as UUTable, etc.
  2149.  
  2150. D9. Index concepts in manual, index in each chapter as appropriate, so can
  2151. trace player/designer/hacker views of concepts.
  2152.  
  2153. D11. Describe format of description-format property.
  2154.  
  2155. D12. Describe action-messages etc, move descriptions to better places in manual.
  2156.  
  2157. D13.
  2158. Dlast.
  2159.  
  2160. --Testing
  2161.  
  2162. T1. Add a compiletime option to measure compute time in microseconds for each
  2163. run_game().  Report each turn as histogram of times.
  2164.  
  2165. T2. In symbol diff script, check symbols by class (type prop, table, etc)
  2166. against appropriate xxx.def file.  Implies no symbols used in both
  2167. xxx.def and keywords.def.
  2168.  
  2169. T3. Add testing machinery for the graphical interfaces.
  2170. Could have AIs play each other on multiple screens.
  2171.  
  2172. T4. Add a (quit [if-end]) command to skelconq that exits.  With if-end,
  2173. only exits if at end-of-game.
  2174.  
  2175. T5. Instead of scanning lib dirs wholesale, make up a list of combinations
  2176. of game and variant options to run (for longer tests only; check-lib should
  2177. still scan entire dir).
  2178.  
  2179. T6. test-lib should run all the useful -g options (use game.dir to collect).
  2180.  
  2181. T7. Add a script to discover which modules are never
  2182. loaded by any library game.
  2183.  
  2184. T8. Set up basic "make check" to run only limited tests on library and standard
  2185. test cases.  Should finish in < 1 hour.
  2186.  
  2187. T9. Add more directed tests as DejaGnu tests.
  2188.  
  2189. T10. Add complete set of test images to test.imf.
  2190.  
  2191. T11. Add tests for end-of-game handling; win, loss, draw, etc.
  2192. Set up some lib games with non- or feeble sides, so one side wins
  2193. more quickly, plus heavily lopsided advantages.
  2194.  
  2195. T12. To test save/restore of tables, dump out help info separately, save
  2196. game, restore, then compare after restoration.
  2197. Also use compiler and compare its output.
  2198.  
  2199. T13. Add a test of external synth program.
  2200.  
  2201. T14. Run gdl/doc/all.g consistency tests as part of "make check-gdl".
  2202.  
  2203. T15. Need special scenarios to be able to test all plan types accurately,
  2204. should set up similar tests for all major parts of planning and AI code,
  2205. each should ensure that all the code bits actually get executed.
  2206.  
  2207. T16. Fix command analysis script to work reliably.
  2208.  
  2209. T17. Write a library module name analyzer/checker - similar to doschk.
  2210.  
  2211. T18. Fix where test games have sides with negative priorities.
  2212.  
  2213. T19.
  2214. Tlast.
  2215.  
  2216. --Library
  2217.  
  2218. L4. WWII scenario should be able to have a "neutrals" side that resists
  2219. involvement.  Attempts to attack neutrals should have some consequences.
  2220. Spain and Turkey should be neutral, but if attacked, will go over to
  2221. other side.  (This should be recorded in the scenario as a preset
  2222. property of those AIs!)  AIs on opposed sides should assess value
  2223. of capturing side's units vs expense & risk of combat.
  2224.  
  2225. L6. Add more 16x16 panzer images.
  2226.  
  2227. L7. Eliminate panzer slope terrain, replace with hilly or rough.
  2228.  
  2229. L8. Gettysburg brigades should vary in quality and hp.
  2230.  
  2231. L9. For Gettysburg, add movie showing rain descending on field at end of game.
  2232. Make unit display say "Kane's brigade (Fed)" instead of "your infantry Kane".
  2233.  
  2234. L10. Add emblems for pelops sides (owl for Athens at least).
  2235.  
  2236. L11. If fighters had a low land/takeoff time, then could attack adj bombers
  2237. a lot more than now (realistic), but bombers can't escape then, unless
  2238. some sort of generic auto-retreat implemented (a good idea).  Auto-retreat
  2239. might happen in addition to the hit, rather than instead of the hit.
  2240. Refuel should consume part of flying time, but not all, then can
  2241. fly many sorties against nearby targets.
  2242.  
  2243. L12. Make new world maps that use connections for straits and rivers.
  2244. Distinguish navigable/unnavigable rivers?
  2245. (extra layers should be optional - could do "ifdef river type")
  2246.  
  2247. L13. Add modified standard game that is more resource-bound, supply used up
  2248. faster, all units must be kept supplied, need to build strings of
  2249. bases to get supplies out to where needed.
  2250.  
  2251. L14. Write a ww2-std-pac-42 scenario with Allies (including Soviets?)
  2252. vs Japan.  Immediate post-Pearl.
  2253.  
  2254. L15. Change ww2-div-pac to include diff sizes of ground units (reg, bde,
  2255. marine bn, inf-bn, marine-div).
  2256.  
  2257. L16. In ww2-eur-42,
  2258. Swiss, Spain&Turkey should have option to be inaccessible, also remove any indep cities.
  2259. Also make Sweden inaccessible?
  2260. Add more depth to USSR (move existing cities west to make room).
  2261.  
  2262. L17. WWII strategic games should have large number of predefined agreements
  2263. constraining players.  Add more pre-existing units to all sides.
  2264. Add "Axis/Allied minor" sides that include Balkans, etc.
  2265.  
  2266. L18. Define emblems for axis and allied sides in ww2-stdunit.
  2267.  
  2268. L19. For Normandy, set up staging areas for German reinforcements to arrive from.
  2269. Set German AI to be primarily defensive.
  2270.  
  2271. L20. In ring-quest, most types should be able to enter independents
  2272. without capturing.  Hobbits and elves should not be able to capture
  2273. anything, but dwarves could capture mines perhaps.  Should riders be
  2274. tied to Rohan specifically?
  2275.  
  2276. L21. To get the AI to try to capture the ring specifically, define a
  2277. scorekeeper that tests possession, Mordor wins if possesses.
  2278. Alliance wins if ring no longer exists, can be destroyed by
  2279. dropping when on "lava" terrain (only at Mt Doom).
  2280.  
  2281. L22. Add to game of wilderness fantasy adventure searching for treasure etc.
  2282. For one player, starts out as a vagabond with limited materials.
  2283. Either convert self to higher "rank", or else have improved capability
  2284. via experience points and more equipment (but what would "equipment" be
  2285. good for exactly?).
  2286. Can capture other humans, animals, etc, use as assistants of variable
  2287. loyalty.
  2288. Could have a machine-run side that seeks to capture/kill player, like a
  2289. police force or army (or assassins?).
  2290. Have ships for crossing oceans (but need to "buy" somehow, and if in town,
  2291. town should be on coast).
  2292. Include weather/seasons with significant effects.
  2293. Need unit/material as object of quest, perhaps different kinds for
  2294. different games.
  2295. Should predefine all sides(?), but allow multiple adventurers and only one
  2296. monster side - lock this side so players can't take it (but not always?)
  2297. To make a race game out of this, make a star shape with players at end points
  2298. and goal in middle.
  2299. Terrain then fixed in size and part of content, another part is variable
  2300. and may be modified by synthesis.
  2301.  
  2302. L23. Add a game "Medieval Diplomacy" a la Kingmaker.
  2303. Each player is a lord/lady with coat of arms.
  2304. Few battles, much maneuvering.
  2305. More alliance machinery?
  2306. Need rules/state for varying degrees/types of alliance, could affect
  2307. mutual transport, control, temporary vs permanent gift, etc.
  2308. Can move armies around, raise/lower taxes, manage rebellions, wheel/deal.
  2309. Players have a chance of dying accidentally or of old age.
  2310. Can players be taken prisoner themselves and try to buy their freedom?
  2311. (Because if player is killed, possessions revert to neutral or to ally
  2312. rather than being acquired by capturer.)
  2313. (Need primitive for "exchange", theory is that actual individuals arranging
  2314. trade can prevent cheating on the spot, perhaps include a "chance of cheating
  2315. success" plus "attempt-to-cheat-p" that each player can set.)
  2316. (Be able to have "materials" like age or heat or poison that are deadly if you
  2317. accumulate too much? would need a excess-death-chance that is like starvation)
  2318.  
  2319. L24. Add a game "Modern War".
  2320. Develop modern-day military games, both operational and strategic.
  2321.  
  2322. L25. Add a game "Today".
  2323. An all-out simulation of the modern world at a 1/2 degree scale,
  2324. with each indep country as a side!  Use earth-50km map,
  2325. add cities and population to account for everybody.
  2326. Would need high-density cities, factories, etc.  Don't worry about size of
  2327. game, use it as a test of massive scale.
  2328. Make small subareas as warmups and test scenarios.
  2329.  
  2330. L26. Add a game "Space Empires".
  2331. Like Spaceword HO or GB, based on thinly scattered solar systems with
  2332. planets as occupants, ships/cities occs of planets.  Deep space move
  2333. very slow (but not less than 1 hex/turn?), but could enter/leave gate
  2334. units more quickly if entry of non-adj unit allowed.
  2335. Solar systems are always-seen, but would need to explore planets more
  2336. carefully (planetary surfaces not plausible tho).
  2337. 1-month turns??
  2338.  
  2339. L27. Add a game "Corporations".
  2340. [could make a game based on corporations that have units that are
  2341. factories etc, should be able to buy and sell them]
  2342. [most elaborate might be to allow corporations to coexist with
  2343. countries (what does that mean?)]
  2344.  
  2345. L29. Add a more elaborate version of "Tolkien".
  2346. Alliance A is dwarves, elves, hobbits&Gandalf, Gondor&dunedain, Rohan,
  2347. each with own realms (Lorien, Iron Hills, etc),
  2348. Alliance B is Mordor, Isengard, Easterners, Southerners,
  2349. and indep sides are dragons, trolls, maybe balrogs.
  2350. Indeps should have predefined chaotic behavior.
  2351. Predefine most units, allow slow production of more.
  2352. Places include:
  2353. village (Hobbiton, Rivendell) - minimal production, no fortification
  2354. town (Edoras, Bree) - minimal fortification
  2355. city (Minas Tirith, Barad-Dur?) - has towers and walls, large population
  2356. tower (Isengard, Minas Morgul) - fortified place
  2357. mine
  2358. ruins - defensive advantage only
  2359. Types for Mordor should include orcs (group of 100?), wolves (group of 10?),
  2360. individual nazgul and trolls.
  2361. Hobbits are individuals, elves and dwarves are groups of 20, men & riders
  2362. are groups of 100.
  2363. Balrogs and dragons are individuals.
  2364.  
  2365. L30. Add more instructions to library games in general.
  2366.  
  2367. L31. Rename "port" image to "anchor", "farm" to "barn".
  2368.  
  2369. L32. Fix match of village image and mask.
  2370.  
  2371. L33. Place galaxy's black holes by using random terrain generator
  2372. on top of fractally generated space and nebula.
  2373.  
  2374. L35. Add mask to glider-bn?
  2375.  
  2376. L36. In ww2-adv, penalize attempts to capture a city directly from transport.
  2377. Only do this for defended cities?
  2378.  
  2379. L37. Find out if classic Xconq always garrisoned captures, make classic module
  2380. do it also if necessary.
  2381.  
  2382. L38.
  2383. Llast.
  2384.  
  2385. --X11 Interface
  2386.  
  2387. X2. Show each player the options that were supplied at startup, as a notice.
  2388.  
  2389. X3. To do movies, draw a frame and schedule a timeout to draw next frame.
  2390.  
  2391. X4. In info window, use fixed fields of 4 chars for each supply type name.
  2392.  
  2393. X5. Extend X11 selection of unit types to include multi-char names.
  2394.  
  2395. X6. Fix X11 unit type list bitmaps to display with consistent colors.
  2396.  
  2397. X7. SelFile should be configured out with disable-selfile, only built
  2398. and linked in if configured and present.
  2399. Fix SelFile nonportabilities like decl of sys_errlist, etc.
  2400.  
  2401. X8. Make imf2x/x2imf translate bitmap filenames and struct names
  2402. properly.
  2403.  
  2404. X9. Colorize unit icons via u_color().
  2405. Allow either use of side colors (symbolically, %1, %2, etc
  2406. matching against side color array elts, or by name).
  2407.  
  2408. X10. List of unit types should gray out types that can't be owned by
  2409. the player.  Add option to eliminate any that can't be in game
  2410. at all (designer will need to see all types though, be able to
  2411. recalculate the list on demand).
  2412.  
  2413. X11. Side list should display other sides' willingness to draw.
  2414.  
  2415. X12. Use special bg pattern or stipple for unseen and grid colors if mono.
  2416. (or - support {lt,md,dk}gray on mono displays, in addition to other patterns.
  2417.  
  2418. X13. Let imf2x only extract bitmaps whose names match given arg.
  2419.  
  2420. X14. Add resource name to request_color, use to override standard
  2421. color choices in library.
  2422.  
  2423. X15. Add resources:
  2424.     -xrm
  2425.     -display (for player starting the game)
  2426.     -fn, -font (text font only)
  2427.  
  2428. X16. Use Xconq.game.<game>.<unit>.{char,image,color} to set per-game colors etc.
  2429.  
  2430. X17. Add side->ui->default_draw_units etc to set initial values for each
  2431. created map, let these be settable from resources.
  2432.  
  2433. X18. Fix drawing to not damage borders or else redraw as needed.
  2434. What rules for which should lay on top of which?
  2435. Try to optimize so border redrawing not always being done.
  2436.  
  2437. X19. Default unit images should include first few chars of name in box,
  2438. a la Mac interface.
  2439.  
  2440. X20. Allow setting of window subdivisions via resources.
  2441. xconq.mapListWidth: <pixels>
  2442. xconq.mapNotesHeight: <lines>
  2443.  
  2444. X21. Develop a higher-contrast more-visible display of current unit/location.
  2445.  
  2446. X22. Typing text into ask_position switches to prompt, reads a textual spec
  2447. of location.
  2448.  
  2449. X23. Allow terrain color to be two colors, use to colorize mono bitmap
  2450. for terrain.
  2451. Search for ',' in t_color, fg first, then bg, assume bg is black if
  2452. not given.  Need a way to reverse so fg is black and bg colored.
  2453.  
  2454. X24. imf2x should be able to indicate progress, never overwrite existing images
  2455. (or compare - effectively "move-if-change" behavior)
  2456.  
  2457. X25. Use a builtin color matching a color name if possible, otherwise
  2458. use the imc definition.
  2459.  
  2460. X26. Write image scalers for *2 and /2 size images, compute and cache during
  2461. startup.  Shrink rule is 0,1 -> 0, 2,3,4 -> 1.
  2462.  
  2463. X27. To describe movement abilities, display both acp and "move range over
  2464. a given terrain type", which may be much less.
  2465.  
  2466. X28. Non-tiling terrain patterns should be centered in cell on top of another
  2467. pattern/color possibly.  How to scale to larger cells?
  2468.  
  2469. X29. Never try to auto-calculate hex chars from fill patterns,
  2470. but maybe provide a simple tool, goes with tool to build
  2471. font from bitmaps?
  2472.  
  2473. X30. Font should support terrain pattern inside colored hex - needs to be
  2474. precomputed when building the font.  If not avail, still have to draw
  2475. twice.
  2476.  
  2477. X31. If names displayed on map, use different size (and type?) fonts
  2478. for different kinds of units.
  2479. Legend fonts should vary with magnification also.
  2480.  
  2481. X32. What to do about area painting and dragging?  Turn on pointer motion
  2482. events temporarily?  Look at "bitmap" source.
  2483.  
  2484. X33. Make the font stuff work again.
  2485. Define a family of "xconq" fonts, one (or two?) for each size, pack in
  2486. icons, masks, terrain.  Eventually allow more than one font at each size,
  2487. in case too many images.  Concentrate on terrain at first...  Keep separate
  2488. file with char->image mapping, read in from a standard place at startup.
  2489. (Install in program? No, can't update when font is updated)
  2490.  
  2491. X34. For event list display, maintain buffer of n lines, each pointing to
  2492. event being listed, recalc when window enlarged, etc.
  2493. When list[i] selected, display event description plus ptrs
  2494. to related events.
  2495. Some "events" will be summaries (like total losses),
  2496. be able to change amt of summarization.
  2497. Observer mask is parenthetical remark.
  2498. Include toggles to display events as they come in, and
  2499. to scroll map to show where event is happening.
  2500.  
  2501. X35. Change setup to use a single popup; list of games and preview at top,
  2502. then variants (min size initially, then grow for actual variants),
  2503. then player list and buttons.
  2504. Constrain to avail screen, borrow code from create_map.
  2505. Use cmdline to fill in as much as possible.
  2506. Highlight stage as committed to.
  2507. Confirm openability of each display when typed in.
  2508. Xconq.setup:
  2509. Xconq.setup.game:
  2510. Xconq.setup.game.list:
  2511. Xconq.setup.game.description:
  2512. Xconq.setup.game.picture:
  2513. Xconq.setup.game.loadbutton:
  2514. Xconq.setup.variants:
  2515. Xconq.setup.variants.{things}:
  2516. Xconq.setup.variants.ok:
  2517. Xconq.setup.variants.cancel:
  2518. Xconq.setup.players:
  2519. Xconq.setup.players.list:
  2520. Xconq.setup.players.{aibutton,etc}:
  2521. Xconq.setup.ok:
  2522. Xconq.setup.cancel:
  2523.  
  2524. X37. Implement do_attack.
  2525.  
  2526. X39. Implement do_produce.
  2527.  
  2528. X40. Implement do_remove_terrain.
  2529.  
  2530. X42. Implement do_surrender_to.
  2531.  
  2532. X43. Implement do_take_unit.
  2533.  
  2534. X44. Add dump of scores to stdout when quitting game.
  2535.  
  2536. X45. Make the following resources work and document them:
  2537. For instance, in your X resources, you would say:
  2538. @example
  2539. Xconq.{*,<game>}.SideName: <string>
  2540. Xconq.{*,<game>}.SideNoun: <string>
  2541. Xconq.{*,<game>}.SidePluralNoun: <string>
  2542. Xconq.{*,<game>}.SideAdjective: <string>
  2543. Xconq.{*,<game>}.SideColorScheme: <color names>
  2544. Xconq.{*,<game>}.SideEmblem: <image name>
  2545. @end example
  2546. where <game> identifies the specific game or game design,
  2547. and the resource names correspond to side slots in the obvious way.
  2548.  
  2549. X46. If a savefile is in current dir and no contradictory args found (no -f, -g, -join),
  2550. ask the player if they wish to resume the saved game.
  2551.  
  2552. X47. Add support for construction run doctrine to build command.
  2553.  
  2554. X48.
  2555. Xlast.
  2556.  
  2557. --Macintosh Interface
  2558.  
  2559. Mac4. Split play menu into an "action" menu and a "control" menu or some such.
  2560.  
  2561. Mac5. Test that maps are properly cleaned up when closed.
  2562.  
  2563. Mac6. Detect when world size variant can no longer be used (after game
  2564. loading and revisit to variants dialog) and gray out.
  2565.  
  2566. Mac7. Fix to beep if a unit ordered to attack but has no ammo available.
  2567. Should also pop up or otherwise make a warning visible.
  2568.  
  2569. Mac8. Fix scrolling confusions in history window.
  2570.  
  2571. Mac9. Fix scrolling confusions in list window.
  2572.  
  2573. Mac10. Add option to display terrain as solid colors if colors are available.
  2574.  
  2575. Mac11. Define and use an "erase-in-the-grid" procedure.
  2576.  
  2577. Mac12. Add a "completed units only" option to list view.
  2578.  
  2579. Mac14. Ensure that "computer" and "face" icons updated when side info changes.
  2580.  
  2581. Mac15. In list, add column that indicates current task.
  2582.  
  2583. Mac16. Disable "give" menu entirely if giving not allowed.  Disable giving unit
  2584. to self, and to any disallowed side; but don't complain too much, since user
  2585. might ask to give every unit to another side.
  2586.  
  2587. Mac17. Change of map magnification should automatically set window to user state.
  2588.  
  2589. Mac18. Display range of possible advantages in player dialog, allow setting via
  2590. popup or text box as well as up/down arrow.
  2591.  
  2592. Mac19. Add numerical display option for sides, set up 8x8 or 6x8 number emblems.
  2593. Also allow larger sizes of numerals (12x12 or 9x12).
  2594.  
  2595. Mac20. Save/restore window setup with Mac interface data, adjusting for
  2596. possibility that game is restarting on a different size screen.
  2597.  
  2598. Mac21. Eliminate occasional need to click a second time to get a build to happen.
  2599. Do by setting up task that will only fail if a certain number of turns
  2600. have passed, and feed back to user also, by indicating task exists, but
  2601. also that acp is currently insufficient to get started.
  2602.  
  2603. Mac22. Update a numeric world size in corner of world shape dialog as cursor moves.
  2604.  
  2605. Mac23. Don't redraw all controls when updating designer dialog.
  2606.  
  2607. Mac26. Check for events between every few rows of drawing, be able to abort or restart
  2608. drawing if requested.
  2609.  
  2610. Mac27. Make designer palette into a floating window.
  2611.  
  2612. Mac28. Do mouse-based actions when mouse *released*.
  2613.  
  2614. Mac30. Command-F (or '.'?) in construction should cause next window back to scroll/hilite
  2615. selected unit (but not bring the window forward).
  2616.  
  2617. Mac31. Use drag of unit to indicate waypoints of a path, feedback with envelopes
  2618. of route and only do waypoints when indicating points outside shortest route.
  2619.  
  2620. Mac32. Be able to double-click in build dialog to set construction .
  2621.  
  2622. Mac33. When laying out list window, precompute widths of columns using max/expected
  2623. string widths for type names etc.  Account for width of headers and desired
  2624. spacing between columns.
  2625.  
  2626. Mac34. Make pdoc load game and print the full description of it.
  2627.  
  2628. Mac35. Allow multiple units to be selected in list windows.
  2629.  
  2630. Mac36. Express merge by dragging onto unit, express detach by supplying an amount
  2631. in modal dialog (awkward, but rare?)
  2632.  
  2633. Mac37. Should be able to zoom or resize side list to show relative standings and
  2634. other detail about each side.
  2635.  
  2636. Mac38. Allow for more flexibility in size of emblem relative to unit (a preference?)
  2637.  
  2638. Mac39. Display instructions and notes from multiple modules possibly, need to say
  2639. how to do this (explicit "append" directive at end of instructions?).
  2640.  
  2641. Mac40. Implement a progress bar for internals of AI calcs or at least a watch cursor.
  2642.  
  2643. Mac41. Add new construction-like dialog for material production.
  2644.  
  2645. Mac42. Build routines to insert a string into a "field" of a list entry,
  2646. instead of rebuilding entire entry.
  2647.  
  2648. Mac43. Mark menus to indicate whether any of a group of selected units matches
  2649. each item.
  2650.  
  2651. Mac44. Unhighlight forward/backward arrows when no units to look at.
  2652.  
  2653. Mac45. Command-. should be able to interrupt nearly any calculation.
  2654.  
  2655. Mac46. Preferences dialog should have a list of specific setups to choose from
  2656. ("big screen", "careful play", etc) impl as config-names.  Player config
  2657. objects should include Mac-specific flags then...  Dialog can also have
  2658. several screens of options.
  2659.  
  2660. Mac47. To display names, make a layer of shorts where each value is location of
  2661. cell with the legended object.  Cell itself has access to legend, plus
  2662. flag indicating direction and position of beginning of legend.  Then to
  2663. erase legend, have to clear each cell that refers to given cell.
  2664. Also need to repair legend correctly when another unit passes through it.
  2665.  
  2666. Mac48. When drawing rubberband line for movement, make line heavier for part of
  2667. movement that will happen immediately.
  2668.  
  2669. Mac49. When listing units by location, add twist-down for occupants, group stack
  2670. members with bar or some such.
  2671.  
  2672. Mac50. Be able to draw more unit info on map window, at least at high mag powers.
  2673. Do num parts/hp, mp/acp, in misc corners a la Empire Master.  Unit id would
  2674. be useful also sometimes.
  2675.  
  2676. Mac51. Implement both randomly-chosen and cycling image sets for the map window.
  2677.  
  2678. Mac52. Should be able to define special win/lose sounds (cheers and raspberries),
  2679. attach to interface's handling of events from kernel.
  2680.  
  2681. Mac54. To indicate available movement, change cursor to reflect accessibility
  2682. and amount of time needed to get there (ETA) or display in control panel
  2683. or elsewhere on map.
  2684.  
  2685. Mac55. Implement doctrine changes with dialogs examining doctrine objects.
  2686. Add button in unit closeups.
  2687.  
  2688. Mac56. Do offscreen drawing for visible map plus part of area around, but need
  2689. to calc memory limits so as not to exhaust space prematurely.  Do one
  2690. offscreen area/map, precalc size and retain, use individual cell drawing
  2691. otherwise.
  2692.  
  2693. Mac57. To draw maps while still allowing events, make an array of rows for each map.
  2694. Update event computes which rows to redraw, plus start/end of each (use 0/0
  2695. to indicate no drawing needed).   Then in main event-handling loop, if rows
  2696. remain to be drawn, do one or a few ("draw rows for 15 ticks") then go back
  2697. to wait for event.  Only call run_game when a) all map rows are drawn, or
  2698. b) an event comes in from another machine.
  2699.  
  2700. Mac58. Be able to hit key to bring up useful data while rubberbanding, or else have
  2701. additional popup or use topline with this info.  Useful data includes distance in
  2702. cells, how much supply unit might need, etc.
  2703.  
  2704. Mac59. Add localizations for common languages.
  2705.  
  2706. Mac61. Add a graph window that displays up to 4-5 chosen statistics against time.
  2707. Needs choice of what to display and a subset selector for each graph.
  2708. Some stats will have records that have been kept, others will start only
  2709. when graph is requested, but then keep accumulating even if no longer
  2710. being displayed.
  2711.  
  2712. Mac63. Add machinery (to MPW version) to build an integrated executable that
  2713. doesn't need lib or lib-mac.  Use sed/streamedit and Rez to make
  2714. resources from text files, plus renumber so no conflicts with base
  2715. resources.
  2716.  
  2717. Mac64. Connect button on splash screen should bring up a transport selection
  2718. a la Bolo, with choices of serial, ip, atalk/ppc, and subdialogs
  2719. appropriate for each.  Player setup dialog then needs a flag for each
  2720. player to indicate when connected.
  2721. (Flagging a player as "remote" should also bring up dialog, if method
  2722. not chosen already.)
  2723.  
  2724. Mac69. Implement do_surrender_to.
  2725.  
  2726. Mac70. Implement do_take_unit.
  2727.  
  2728. Mac72. If name of resource being read into IMFApp is mistaken, warn and
  2729. ignore if continued, don't exit.
  2730.  
  2731. Mac73. Reduce amount of redrawing of unit list window.
  2732.  
  2733. Mac75. Define fonts "small" and "large", make both user-settable.
  2734. "Small" font is for most text, "large" is for highlights and titles.
  2735.  
  2736. Mac77. Offset map being viewed at angle so that most-offset elevation
  2737. is still visible.  (What about aerial units?  May be very high up relative
  2738. to perspective.)
  2739.  
  2740. Mac78. Add view menu item to adjust sorting/summary of score window etc.
  2741.  
  2742. Mac79. Add tests for System 7 explicitly, warn and exit if not 7.
  2743.  
  2744. Mac80. Change IMFApp to output either color-only (cicn/ppat) or bw-only
  2745. (icon/sicn/pat) data.
  2746.  
  2747. Mac81. Fix IMFApp so that multiple sizes of cicn resource get written out
  2748. with different names.
  2749.  
  2750. Mac82. Read/write scores in same place, irrespective of where
  2751. game loads from.
  2752.  
  2753. Mac83. If no CQD, have picts for non-16x16, 32x32 images.
  2754.  
  2755. Mac84. If no CQD, still use black for default unknown terrain.
  2756.  
  2757. Mac86. Draw feature boundaries as X11 interface does.
  2758.  
  2759. Mac87. Fix redrawing of grow box when map is made larger.
  2760.  
  2761. Mac88. Do variable-width formatting of lists in construction window, don't cut
  2762. anything off short unless absolutely necessary.
  2763.  
  2764. Mac89. Port to PowerPC, supply PPC or fat version in distributions.
  2765.  
  2766. Mac90. Add dialog to record statistics in user-specified file.
  2767.  
  2768. Mac91.
  2769. Maclast.
  2770.  
  2771. --Windows Interface
  2772.  
  2773. W1. Add one.
  2774.  
  2775. --NextStep Interface
  2776.  
  2777. N1. Add one.
  2778.  
  2779. --Curses Interface
  2780.  
  2781. C3. Fix curses interface so cursor not always in bottom corner of screen
  2782. on some machines (like sun4).
  2783.  
  2784. C7. Extend selection of unit types to include multi-char names.
  2785.  
  2786. C10. When moving cursor modally, maintain some info about what exactly is under
  2787. the cursor (use whole info space, put info about what is being
  2788. moved in mode line).
  2789. Include info about distance from starting position, and support "direction"
  2790. cmds to cycle through stack.
  2791. Distinguish perm from temp top line data, keep track of each separately.
  2792.  
  2793. C11. 'D' doctrine, have it bring up textual summary, use textual commands to
  2794. modify.
  2795.  
  2796. C14. Allow putting up a legend to display chars (such as terrain type chars)
  2797. in list area.  Bring up via '/' or perhaps option to general help.
  2798. (or via 'v' command?)
  2799.  
  2800. C15. If can support, add getch() timeout so human can move immediately instead
  2801. of waiting for mplayer to finish.  Indicate that mplayer is "thinking"
  2802. periodically, need kernel callback (?).
  2803.  
  2804. C16. Help topics should be formatted as multi-column list, let arrow keys
  2805. move around.
  2806.  
  2807. C19. Warnings should have a preference to record full text of warning in a file.
  2808. Full warning should more data at end of message, then truncate if too big
  2809. for alerts.  (If warning recording is on, mention in alerts or somewhere
  2810. that additional data is available in a given file.)
  2811.  
  2812. C24. Implement do_surrender_to.
  2813.  
  2814. C25. Implement do_take_unit.
  2815.  
  2816. C26. Always write curunit's chars on top of chars already in cell.
  2817.  
  2818. C27. Fix map display to show bottom line after '_' command sets info size.
  2819.  
  2820. C30.
  2821. Clast.
  2822.  
  2823. --DOS/VGA Interface
  2824.  
  2825. Dos1. Add one.  (Xconq is fundamentally 32-bit code, so not much point in
  2826. trying to do anything less than i386 with VGA; use DJGPP with libgrx.)
  2827.  
  2828. Dos2. DOS code should do name reduction algo when trying to open
  2829. a long name file.
  2830. *.dir -> *_dir.txt for DOS.
  2831.  
  2832.  
  2833.